public override IDecorationOf <ICondition> ApplyThisDecorationTo(ICondition thing)
        {
            var returnValue = new PollingConditionDecoration(thing);

            if (this.BackgroundHost != null)
            {
                returnValue.SetBackgroundAction(this.BackgroundStrategy, this.BackgroundHost.BackgroundIntervalMSecs);
            }
            return(returnValue);
        }
 public override IDecorationOf<ICondition> ApplyThisDecorationTo(ICondition thing)
 {
     var returnValue =  new PollingConditionDecoration(thing);
     if (this.BackgroundHost != null)
         returnValue.SetBackgroundAction(this.BackgroundStrategy, this.BackgroundHost.BackgroundIntervalMSecs);
     return returnValue;
 }