HA4IoT.Automations.ConditionalOnAutomation.WithOffBetweenRange C# (CSharp) Method

WithOffBetweenRange() public method

public WithOffBetweenRange ( System.TimeSpan from, System.TimeSpan until ) : ConditionalOnAutomation
from System.TimeSpan
until System.TimeSpan
return ConditionalOnAutomation
        public ConditionalOnAutomation WithOffBetweenRange(TimeSpan from, TimeSpan until)
        {
            WithCondition(ConditionRelation.And, new TimeRangeCondition(_dateTimeService).WithStart(() => from).WithEnd(() => until).WithInversion());

            return this;
        }