Exemplo n.º 1
0
        public DeliveryRuleUriFileNameCondition(UriFileNameMatchCondition properties)
        {
            if (properties == null)
            {
                throw new ArgumentNullException(nameof(properties));
            }

            Properties = properties;
            Name       = MatchVariable.UriFileName;
        }
Exemplo n.º 2
0
        internal static DeliveryRuleUriFileNameCondition DeserializeDeliveryRuleUriFileNameCondition(JsonElement element)
        {
            UriFileNameMatchCondition parameters = default;
            MatchVariable             name       = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("parameters"))
                {
                    parameters = UriFileNameMatchCondition.DeserializeUriFileNameMatchCondition(property.Value);
                    continue;
                }
                if (property.NameEquals("name"))
                {
                    name = new MatchVariable(property.Value.GetString());
                    continue;
                }
            }
            return(new DeliveryRuleUriFileNameCondition(name, parameters));
        }
Exemplo n.º 3
0
 internal DeliveryRuleUriFileNameCondition(MatchVariable name, UriFileNameMatchCondition properties) : base(name)
 {
     Properties = properties;
     Name       = name;
 }