-
Notifications
You must be signed in to change notification settings - Fork 200
Closed
Description
With the introduction of deferred binding via using ParameterBindingData/ModelBindingData to enable SDK-type bindings such as BlobClient in the worker, we need to make sure we also support the collection scenario. Meaning, we should be able to bind to IEnumerable<BlobClient> blobs.
Example:
public static class BlobFunction_EnumerateBlobs_BlobClient
{
[FunctionName("BlobFunction")]
public static void Run(
[BlobTrigger("sample-container/sample-blob")] Stream blobStream,
[Blob("sample-container")] IEnumerable<BlobClient> blobs,
ILogger logger)
{
logger.LogInformation("Blobs within container:");
foreach (BlobClient blob in blobs)
{
logger.LogInformation(blob.Name);
}
}
}Investigate if this works out of the box with the blob converter we have in place today. If this use case is not working, update the converter and other necessary code paths to enable this scenario
Notes
-
This is how we handle cardinality in the function metadata generator and might be useful to be aware of.
-
This is the blob converter where we should be able to handle the collection case