public async Task <IDeployResponse> Send(TimeSpan?timeout = null) { var asyncReply = gatewayClient.DeployProcessAsync(request, deadline: timeout?.FromUtcNow()); var response = await asyncReply.ResponseAsync; return(new DeployResponse(response)); }
public async Task <IDeployResponse> Send(TimeSpan?timeout = null, CancellationToken token = default) { var asyncReply = gatewayClient.DeployProcessAsync(request, deadline: timeout?.FromUtcNow(), cancellationToken: token); var response = await asyncReply.ResponseAsync; return(new DeployResponse(response)); }