コード例 #1
0
        public async Task <IActivateJobsResponse> Send(TimeSpan?timeout = null, CancellationToken token = default)
        {
            var activateJobsResponses = new Responses.ActivateJobsResponses();
            await activator.SendActivateRequest(Request, response => Task.Run(() => activateJobsResponses.Add(response), token), timeout?.FromUtcNow(), token);

            return(activateJobsResponses);
        }
コード例 #2
0
 public async Task <IActivateJobsResponse> Send(TimeSpan?timeout, CancellationToken?cancellationToken)
 {
     return(await activator.SendActivateRequest(Request, timeout?.FromUtcNow(), cancellationToken));
 }
コード例 #3
0
 public async Task <IActivateJobsResponse> Send(TimeSpan?timeout = null)
 {
     return(await activator.SendActivateRequest(request, timeout?.FromUtcNow()));
 }
コード例 #4
0
 public async Task <IActivateJobsResponse> Send()
 {
     return(await activator.SendActivateRequest(request));
 }