public async Task <int> ExecuteWorkAsync(TInput input, TResult result, CancellationToken token, bool configAwait = false) { var currTicks = DateTime.UtcNow.Ticks; var workResult = await _workItem.ExecuteWorkAsync(input, result, token, configAwait).ConfigureAwait(configAwait); AddToStats(DateTime.UtcNow.Ticks - currTicks); return(workResult); }
public Task <int> ExecuteWorkAsync(TInput input, TResult result, CancellationToken token, bool configAwait = false) { return(_workItem.ExecuteWorkAsync(input, result, token, configAwait)); }