示例#1
0
 private Task <bool> EnsureQueueIsSubscribedToTopic(SnsTopicByName eventTopic, SqsQueueByName queue)
 {
     return(eventTopic.SubscribeAsync(queue));
 }
 private async Task <bool> EnsureQueueIsSubscribedToTopic(SnsTopicByName eventTopic, SqsQueueByName queue)
 {
     return(await eventTopic.SubscribeAsync(queue).ConfigureAwait(false));
 }
示例#3
0
 private async Task EnsureQueueIsSubscribedToTopic(RegionEndpoint region, SnsTopicByName eventTopic, SqsQueueByName queue)
 {
     var sqsclient = _awsClientFactory.GetAwsClientFactory().GetSqsClient(region);
     await eventTopic.SubscribeAsync(sqsclient, queue);
 }