Azure Service Bus 触发器用于 Azure Functions for Topic 和订阅,我想知道 Azure Service Bus 触发器输入和输出是否支持共享访问签名(SAS)?
https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-sas https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings -服务总线
输出
[FunctionName(nameof(Order))]
public async Task<IActionResult> Order(
[HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = null)]
HttpRequest request,
[ServiceBus("%TopicName%", EntityType.Topic, Connection = "AzureServiceBus_ConnectionString")]
IAsyncCollector<Message> collector)
{
await collector.AddAsync(message);
}
输入
[FunctionName("ServiceBusQueueTriggerCSharp")]
public static void Run(
[ServiceBusTrigger("myqueue", AccessRights.Manage, Connection = "ServiceBusConnection")]
string myQueueItem,
Int32 deliveryCount,
DateTime enqueuedTimeUtc,
string messageId,
ILogger log)
{
}
任何想法?
如果不支持,任何解决方法