Amazon.ServerMigrationService.AmazonServerMigrationServiceClient.StartOnDemandReplicationRunAsync C# (CSharp) Method

StartOnDemandReplicationRunAsync() public method

Initiates the asynchronous execution of the StartOnDemandReplicationRun operation.
public StartOnDemandReplicationRunAsync ( StartOnDemandReplicationRunRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.ServerMigrationService.Model.StartOnDemandReplicationRunRequest Container for the necessary parameters to execute the StartOnDemandReplicationRun operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<StartOnDemandReplicationRunResponse> StartOnDemandReplicationRunAsync(StartOnDemandReplicationRunRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new StartOnDemandReplicationRunRequestMarshaller();
            var unmarshaller = StartOnDemandReplicationRunResponseUnmarshaller.Instance;

            return InvokeAsync<StartOnDemandReplicationRunRequest,StartOnDemandReplicationRunResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }