Example #1
0
        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);
        }
Example #2
0
 public Task <int> ExecuteWorkAsync(TInput input, TResult result, CancellationToken token,
                                    bool configAwait = false)
 {
     return(_workItem.ExecuteWorkAsync(input, result, token, configAwait));
 }