如果我创建一个 azure 函数 Blob Trigger,我可以定义 Blob 的输入流和我想写入一些数据的输出流,签名类似于下面。
public async Task RunAsync(
[BlobTrigger(BlobPath, Connection = "FileStorage")]
Stream inputStream,
[Blob(OutputBlobPath, FileAccess.Write, Connection = "FileStorage")]
Stream outputStream,
/* other fields removed for brevity */
)
{
/* ... */
}
使用为创建 blob 而触发的 EventGrid 触发器时是否可以定义类似的内容?IE
public async Task RunAsync(
[EventGridTrigger] EventGridEvent eventGridEvent,
[Blob("{data.url}", FileAccess.Read, Connection = "FileStorage")] Stream input,
/* is something like this possible -> */ [Blob(?, FileAccess.Write, Connection = "FileStorage")] Stream output)
{
/* ... */
}