Amazon.Pinpoint.AmazonPinpointClient.CreateSegmentAsync C# (CSharp) Method

CreateSegmentAsync() public method

Initiates the asynchronous execution of the CreateSegment operation.
public CreateSegmentAsync ( CreateSegmentRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.Pinpoint.Model.CreateSegmentRequest Container for the necessary parameters to execute the CreateSegment operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<CreateSegmentResponse> CreateSegmentAsync(CreateSegmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new CreateSegmentRequestMarshaller();
            var unmarshaller = CreateSegmentResponseUnmarshaller.Instance;

            return InvokeAsync<CreateSegmentRequest,CreateSegmentResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonPinpointClient