public SetEndpointAttributesAsync ( SetEndpointAttributesRequest request, SetEndpointAttributesResponse>.AmazonServiceCallback |
||
request | SetEndpointAttributesRequest | Container for the necessary parameters to execute the SetEndpointAttributes operation on AmazonSimpleNotificationServiceClient. |
callback | SetEndpointAttributesResponse>.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 SetEndpointAttributesAsync(SetEndpointAttributesRequest request, AmazonServiceCallback<SetEndpointAttributesRequest, SetEndpointAttributesResponse> callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var marshaller = new SetEndpointAttributesRequestMarshaller();
var unmarshaller = SetEndpointAttributesResponseUnmarshaller.Instance;
Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult<SetEndpointAttributesRequest,SetEndpointAttributesResponse> responseObject
= new AmazonServiceResult<SetEndpointAttributesRequest,SetEndpointAttributesResponse>((SetEndpointAttributesRequest)req, (SetEndpointAttributesResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke<SetEndpointAttributesRequest>(request, marshaller, unmarshaller, options, callbackHelper);
}
AmazonSimpleNotificationServiceClient::SetEndpointAttributesAsync ( SetEndpointAttributesRequest request, System cancellationToken = default(CancellationToken) ) : Task |