internal virtual StartOnDemandReplicationRunResponse StartOnDemandReplicationRun(StartOnDemandReplicationRunRequest request) { var marshaller = StartOnDemandReplicationRunRequestMarshaller.Instance; var unmarshaller = StartOnDemandReplicationRunResponseUnmarshaller.Instance; return(Invoke <StartOnDemandReplicationRunRequest, StartOnDemandReplicationRunResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the StartOnDemandReplicationRun operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartOnDemandReplicationRun operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartOnDemandReplicationRun">REST API Reference for StartOnDemandReplicationRun Operation</seealso> 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)); }