Amazon.Route53.AmazonRoute53Client.GetHealthCheckCountAsync C# (CSharp) 메소드

GetHealthCheckCountAsync() 공개 메소드

Initiates the asynchronous execution of the GetHealthCheckCount operation.
public GetHealthCheckCountAsync ( GetHealthCheckCountRequest request, System cancellationToken = default(CancellationToken) ) : Task
request GetHealthCheckCountRequest Container for the necessary parameters to execute the GetHealthCheckCount operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
리턴 Task
        public Task<GetHealthCheckCountResponse> GetHealthCheckCountAsync(GetHealthCheckCountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new GetHealthCheckCountRequestMarshaller();
            var unmarshaller = GetHealthCheckCountResponseUnmarshaller.Instance;

            return InvokeAsync<GetHealthCheckCountRequest,GetHealthCheckCountResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }

Usage Example

예제 #1
0
        public async Task<long> AsyncMethod()
        {
            IConfigHandler _configHandler = new AppConfigHandler();
            var config = _configHandler.GetConfig();

            IAmazonRoute53 _amazonClient = new AmazonRoute53Client(config.Route53AccessKey, config.Route53SecretKey, RegionEndpoint.EUWest1);
            var request = new GetHealthCheckCountRequest() { };
            var response = await _amazonClient.GetHealthCheckCountAsync(request);

            return response.HealthCheckCount;
        }
AmazonRoute53Client