Пример #1
0
        public override async Task Handle <TResult>(TaskEffect <TResult> effect)
        {
            var result = await effect.Task;

            effect.SetResult(result);
            await Log(result, effect);
        }
Пример #2
0
        public override async Task Handle <TResult>(TaskEffect <TResult> effect)
        {
            try
            {
                var result = await effect.Task;
                effect.SetResult(result);
            }
            catch (Exception ex)
            {
                await Log(ex, effect);

                throw;
            }
        }