public async Task <ICompleteJobResponse> Send(TimeSpan?timeout = null)
        {
            var asyncReply = gatewayClient.CompleteJobAsync(request, deadline: timeout?.FromUtcNow());
            await asyncReply.ResponseAsync;

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

            return(new Responses.CompleteJobResponse());
        }
Exemplo n.º 3
0
        public async Task <ICompleteJobResponse> Send()
        {
            var asyncReply = gatewayClient.CompleteJobAsync(request);
            await asyncReply.ResponseAsync;

            return(new Responses.CompleteJobResponse());
        }