Beispiel #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();
            }
        }
Beispiel #2
0
        protected override void invoke(Action action)
        {
            _log.StartSubject(_node);

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