Пример #1
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();
            }
        }
Пример #2
0
        protected override void invoke(Action action)
        {
            _log.StartSubject(_node);

            try
            {
                action();
            }
            catch (Exception ex)
            {
                _log.LogException(ex);
                throw;
            }
            finally
            {
                _log.FinishSubject();
            }
        }
Пример #3
0
 public void Error(string message, Exception ex)
 {
     _trace.LogException(ex);
 }