Esempio n. 1
0
 protected override void invoke(Action action)
 {
     _log.StartSubject(_chain);
     try
     {
         action();
     }
     finally
     {
         _log.FinishSubject();
     }
 }
 protected override async Task invoke(Func <Task> func)
 {
     _log.StartSubject(_chain);
     try
     {
         await func().ConfigureAwait(false);
     }
     finally
     {
         _log.FinishSubject();
     }
 }
Esempio n. 3
0
        protected override async Task invoke(Func <Task> func)
        {
            _log.StartSubject(_node);

            try
            {
                await func().ConfigureAwait(false);
            }
            catch (Exception ex)
            {
                _log.LogException(ex);
                throw;
            }
            finally
            {
                _log.FinishSubject();
            }
        }
Esempio n. 4
0
        protected override void invoke(Action action)
        {
            _log.StartSubject(_node);

            try
            {
                action();
            }
            catch (Exception ex)
            {
                _log.LogException(ex);
                throw;
            }
            finally
            {
                _log.FinishSubject();
            }
        }