public UnsubscribeAsync ( string subscriptionArn, UnsubscribeResponse>.AmazonServiceCallback |
||
subscriptionArn | string | The ARN of the subscription to be deleted. |
callback | UnsubscribeResponse>.AmazonServiceCallback | An Action delegate that is invoked when the operation completes. |
options | AsyncOptions | /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// |
return | void |
public void UnsubscribeAsync(string subscriptionArn, AmazonServiceCallback<UnsubscribeRequest, UnsubscribeResponse> callback, AsyncOptions options = null)
{
var request = new UnsubscribeRequest();
request.SubscriptionArn = subscriptionArn;
UnsubscribeAsync(request, callback, options);
}
AmazonSimpleNotificationServiceClient::UnsubscribeAsync ( UnsubscribeRequest request, System cancellationToken = default(CancellationToken) ) : Task |
|
AmazonSimpleNotificationServiceClient::UnsubscribeAsync ( string subscriptionArn, System cancellationToken = default(CancellationToken) ) : Task |
|
AmazonSimpleNotificationServiceClient::UnsubscribeAsync ( UnsubscribeRequest request, UnsubscribeResponse>.AmazonServiceCallback |
private void UnSubscribe(string subscriptionArn) { using (var client = new AmazonSimpleNotificationServiceClient(this.AwsCredentials, this.AwsRegion)) { Task <UnsubscribeResponse> t; t = client.UnsubscribeAsync(subscriptionArn); t.Wait(); if (t.IsCompleted) { this.ReloadExistingSubscriptions(); } } }