public ConfirmSubscriptionAsync ( |
||
request | Container for the necessary parameters to execute the ConfirmSubscription operation. | |
cancellationToken | System | /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// |
return | Task |
public void Confirm(string topicArn, string token) { using (var client = new AmazonSimpleNotificationServiceClient(this.AwsCredentials, this.AwsRegion)) { var cr = new ConfirmSubscriptionRequest(); cr.TopicArn = topicArn; cr.Token = token; var t = client.ConfirmSubscriptionAsync(cr); t.Wait(); if (t.IsCompleted && t.Result is object) { this.ReloadExistingSubscriptions(); } } }