Azure Service Bus触发器对Azure功能2的输入/输出的共享访问签名支持

时间:2019-06-24 13:37:31

标签: azure azure-functions azureservicebus azure-servicebus-topics azure-servicebus-subscriptions

Azure Service Bus触发器用于主题和订阅的Azure功能,我想知道Azure Service Bus触发器的输入和输出是否支持共享访问签名(SAS)?

here https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-sas

输出

  [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)
{

}

有什么主意吗?

如果不支持,请采取任何解决方法

0 个答案:

没有答案