internal GetSubscriptionAttributesResponse GetSubscriptionAttributes(GetSubscriptionAttributesRequest request) { var marshaller = new GetSubscriptionAttributesRequestMarshaller(); var unmarshaller = GetSubscriptionAttributesResponseUnmarshaller.Instance; return(Invoke <GetSubscriptionAttributesRequest, GetSubscriptionAttributesResponse>(request, marshaller, unmarshaller)); }
/** * Convert GetSubscriptionAttributesRequest to name value pairs */ private static IDictionary<string, string> ConvertGetSubscriptionAttributes(GetSubscriptionAttributesRequest request) { IDictionary<string, string> parameters = new Dictionary<string, string>(); parameters["Action"] = "GetSubscriptionAttributes"; if (request.IsSetSubscriptionArn()) { parameters["SubscriptionArn"] = request.SubscriptionArn; } return parameters; }
internal GetSubscriptionAttributesResponse GetSubscriptionAttributes(GetSubscriptionAttributesRequest request) { var task = GetSubscriptionAttributesAsync(request); try { return(task.Result); } catch (AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return(null); } }
/// <summary> /// Returns all of the properties of a subscription customers have created. Subscription /// properties returned might differ based on the authorization of the user. /// </summary> /// <param name="request">Get Subscription Attributes request</param> /// <returns>Get Subscription Attributes Response from the service</returns> public GetSubscriptionAttributesResponse GetSubscriptionAttributes(GetSubscriptionAttributesRequest request) { return(Invoke <GetSubscriptionAttributesResponse>(request, ConvertGetSubscriptionAttributes(request))); }
public Task <GetSubscriptionAttributesResponse> GetSubscriptionAttributesAsync(GetSubscriptionAttributesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { throw new System.NotImplementedException(); }
public GetSubscriptionAttributesResponse GetSubscriptionAttributes(GetSubscriptionAttributesRequest request) { throw new System.NotImplementedException(); }
/// <summary> /// Initiates the asynchronous execution of the GetSubscriptionAttributes operation. /// <seealso cref="Amazon.SimpleNotificationService.IAmazonSimpleNotificationService"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetSubscriptionAttributes operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <GetSubscriptionAttributesResponse> GetSubscriptionAttributesAsync(GetSubscriptionAttributesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetSubscriptionAttributesRequestMarshaller(); var unmarshaller = GetSubscriptionAttributesResponseUnmarshaller.Instance; return(Invoke <IRequest, GetSubscriptionAttributesRequest, GetSubscriptionAttributesResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
public void GetSubscriptionAttributesAsync(GetSubscriptionAttributesRequest request, AmazonServiceCallback <GetSubscriptionAttributesRequest, GetSubscriptionAttributesResponse> callback, AsyncOptions options = null) { throw new System.NotImplementedException(); }
public Task <GetSubscriptionAttributesResponse> GetSubscriptionAttributesAsync(GetSubscriptionAttributesRequest request, CancellationToken cancellationToken = new CancellationToken()) { throw new NotImplementedException(); }