コード例 #1
0
        public override async Task Handle <TResult>(TaskAwaiter <TResult> effect)
        {
            try
            {
                var result = await effect.Task;
                effect.SetResult(result);
            }
            catch (Exception ex)
            {
                await Log(ex, effect);

                throw;
            }
        }
コード例 #2
0
 public override async Task Handle<TResult>(TaskAwaiter<TResult> effect)
 {            
     var result = await effect.Task;
     effect.SetResult(result);
     await Log(result, effect);
 }