Amazon.IoT.AmazonIoTClient.GetPolicyAsync C# (CSharp) Метод

GetPolicyAsync() публичный Метод

Initiates the asynchronous execution of the GetPolicy operation.
public GetPolicyAsync ( GetPolicyRequest request, System cancellationToken = default(CancellationToken) ) : Task
request GetPolicyRequest Container for the necessary parameters to execute the GetPolicy operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task
        public Task<GetPolicyResponse> GetPolicyAsync(GetPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new GetPolicyRequestMarshaller();
            var unmarshaller = GetPolicyResponseUnmarshaller.Instance;

            return InvokeAsync<GetPolicyRequest,GetPolicyResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }

Same methods

AmazonIoTClient::GetPolicyAsync ( string policyName, System cancellationToken = default(CancellationToken) ) : Task
AmazonIoTClient