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