Esempio n. 1
0
        public DeliveryRuleRequestUriCondition(RequestUriMatchCondition properties)
        {
            if (properties == null)
            {
                throw new ArgumentNullException(nameof(properties));
            }

            Properties = properties;
            Name       = MatchVariable.RequestUri;
        }
Esempio n. 2
0
        internal static DeliveryRuleRequestUriCondition DeserializeDeliveryRuleRequestUriCondition(JsonElement element)
        {
            RequestUriMatchCondition parameters = default;
            MatchVariable            name       = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("parameters"))
                {
                    parameters = RequestUriMatchCondition.DeserializeRequestUriMatchCondition(property.Value);
                    continue;
                }
                if (property.NameEquals("name"))
                {
                    name = new MatchVariable(property.Value.GetString());
                    continue;
                }
            }
            return(new DeliveryRuleRequestUriCondition(name, parameters));
        }
Esempio n. 3
0
 internal DeliveryRuleRequestUriCondition(MatchVariable name, RequestUriMatchCondition properties) : base(name)
 {
     Properties = properties;
     Name       = name;
 }