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;
        }
Esempio n. 2
0
        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);
        }