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); }
public async Task <IActivateJobsResponse> Send(TimeSpan?timeout, CancellationToken?cancellationToken) { return(await activator.SendActivateRequest(Request, timeout?.FromUtcNow(), cancellationToken)); }
public async Task <IActivateJobsResponse> Send(TimeSpan?timeout = null) { return(await activator.SendActivateRequest(request, timeout?.FromUtcNow())); }
public async Task <IActivateJobsResponse> Send() { return(await activator.SendActivateRequest(request)); }