Пример #1
0
        public override IDecorationOf <ILogic> ApplyThisDecorationTo(ILogic thing)
        {
            var returnValue = new PollingLogicDecoration(thing);

            if (this.BackgroundHost != null)
            {
                returnValue.SetBackgroundAction(this.BackgroundStrategy, this.BackgroundHost.BackgroundIntervalMSecs);
            }
            return(returnValue);
        }
Пример #2
0
 public override IDecorationOf<ILogic> ApplyThisDecorationTo(ILogic thing)
 {
     var returnValue = new PollingLogicDecoration(thing);
     if (this.BackgroundHost != null)
         returnValue.SetBackgroundAction(this.BackgroundStrategy, this.BackgroundHost.BackgroundIntervalMSecs);
     return returnValue;
 }