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); }
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; }