public async Task <ISetVariablesResponse> Send(TimeSpan?timeout = null) { var asyncReply = client.SetVariablesAsync(request, deadline: timeout?.FromUtcNow()); var response = await asyncReply.ResponseAsync; return(new SetVariablesResponse(response)); }
public async Task <ISetVariablesResponse> Send(TimeSpan?timeout = null, CancellationToken token = default) { var asyncReply = client.SetVariablesAsync(request, deadline: timeout?.FromUtcNow(), cancellationToken: token); var response = await asyncReply.ResponseAsync; return(new SetVariablesResponse(response)); }
public async Task <ISetVariablesResponse> Send() { var asyncReply = client.SetVariablesAsync(request); await asyncReply.ResponseAsync; return(new Responses.SetVariablesResponse()); }