public async Task <ICancelProcessInstanceResponse> Send(TimeSpan?timeout = null) { var asyncReply = client.CancelProcessInstanceAsync(request, deadline: timeout?.FromUtcNow()); await asyncReply.ResponseAsync; return(new CancelProcessInstanceResponse()); }