public override IDecorationOf<ICondition> ApplyThisDecorationTo(ICondition thing) { this.Logger.LogVerbose("ApplyThisDecorationTo started", thing); IDecorationOf<ICondition> rv = null; try { rv = new LoggingConditionDecoration(thing, this.Logger); } catch (Exception ex) { this.Logger.LogError(ex.Message, null, ex); throw; } finally { this.Logger.LogVerbose("ApplyThisDecorationTo completed", null); } return rv; }
public override IDecorationOf <ICondition> ApplyThisDecorationTo(ICondition thing) { this.Logger.LogVerbose("ApplyThisDecorationTo started", thing); IDecorationOf <ICondition> rv = null; try { rv = new LoggingConditionDecoration(thing, this.Logger); } catch (Exception ex) { this.Logger.LogError(ex.Message, null, ex); throw; } finally { this.Logger.LogVerbose("ApplyThisDecorationTo completed", null); } return(rv); }