Пример #1
0
        public override IDecorationOf<ILogic> ApplyThisDecorationTo(ILogic thing)
        {
            this.Logger.LogVerbose("ApplyThisDecorationTo started", thing);

            IDecorationOf<ILogic> rv = null;

            try
            {
                rv = new LoggingLogicDecoration(thing, this.Logger);
            }
            catch (Exception ex)
            {
                this.Logger.LogError(ex.Message, null, ex);
                throw;
            }
            finally
            {
                this.Logger.LogVerbose("ApplyThisDecorationTo completed", null);
            }

            return rv;
        }
Пример #2
0
        public override IDecorationOf <ILogic> ApplyThisDecorationTo(ILogic thing)
        {
            this.Logger.LogVerbose("ApplyThisDecorationTo started", thing);

            IDecorationOf <ILogic> rv = null;

            try
            {
                rv = new LoggingLogicDecoration(thing, this.Logger);
            }
            catch (Exception ex)
            {
                this.Logger.LogError(ex.Message, null, ex);
                throw;
            }
            finally
            {
                this.Logger.LogVerbose("ApplyThisDecorationTo completed", null);
            }

            return(rv);
        }