Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient.GetPlatformApplicationAttributesAsync C# (CSharp) Méthode

GetPlatformApplicationAttributesAsync() public méthode

Initiates the asynchronous execution of the GetPlatformApplicationAttributes operation.
public GetPlatformApplicationAttributesAsync ( GetPlatformApplicationAttributesRequest request, GetPlatformApplicationAttributesResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request Amazon.SimpleNotificationService.Model.GetPlatformApplicationAttributesRequest Container for the necessary parameters to execute the GetPlatformApplicationAttributes operation on AmazonSimpleNotificationServiceClient.
callback GetPlatformApplicationAttributesResponse>.AmazonServiceCallback An Action delegate that is invoked when the operation completes.
options Amazon.Runtime.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.
Résultat void
        public void GetPlatformApplicationAttributesAsync(GetPlatformApplicationAttributesRequest request, AmazonServiceCallback<GetPlatformApplicationAttributesRequest, GetPlatformApplicationAttributesResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new GetPlatformApplicationAttributesRequestMarshaller();
            var unmarshaller = GetPlatformApplicationAttributesResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<GetPlatformApplicationAttributesRequest,GetPlatformApplicationAttributesResponse> responseObject 
                            = new AmazonServiceResult<GetPlatformApplicationAttributesRequest,GetPlatformApplicationAttributesResponse>((GetPlatformApplicationAttributesRequest)req, (GetPlatformApplicationAttributesResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<GetPlatformApplicationAttributesRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonSimpleNotificationServiceClient::GetPlatformApplicationAttributesAsync ( GetPlatformApplicationAttributesRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleNotificationServiceClient