Ejemplo n.º 1
0
        /// <inheritdoc />
        public override IEnumerable <string> GetValues(IInputArguments input)
        {
            this.AssertInput(input);

            return(BaseValueProvider.WrapOptionalValue(this.TimeOfDay));
        }
Ejemplo n.º 2
0
 /// <summary>Construct an instance.</summary>
 /// <param name="type">The condition type.</param>
 /// <param name="value">Get the current value.</param>
 /// <param name="isValidInContext">Get whether the value provider is applicable in the current context, or <c>null</c> if it's always applicable.</param>
 /// <param name="mayReturnMultipleValues">Whether the root may contain multiple values.</param>
 /// <param name="allowedValues">The allowed values (or <c>null</c> if any value is allowed).</param>
 public ConditionTypeValueProvider(ConditionType type, Func <string?> value, Func <bool>?isValidInContext = null, bool mayReturnMultipleValues = false, IEnumerable <string>?allowedValues = null)
     : this(type, () => BaseValueProvider.WrapOptionalValue(value()), isValidInContext, mayReturnMultipleValues, allowedValues)
 {
 }