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(); } }
protected override void invoke(Action action) { _log.StartSubject(_node); try { action(); } catch (Exception ex) { _log.LogException(ex); throw; } finally { _log.FinishSubject(); } }
public void Error(string message, Exception ex) { _trace.LogException(ex); }