Exemple #1
0
        public DeliveryRuleRequestHeaderAction(HeaderActionParameters parameters)
        {
            if (parameters == null)
            {
                throw new ArgumentNullException(nameof(parameters));
            }

            Parameters = parameters;
            Name       = DeliveryRuleActionType.ModifyRequestHeader;
        }
Exemple #2
0
        internal static DeliveryRuleResponseHeaderAction DeserializeDeliveryRuleResponseHeaderAction(JsonElement element)
        {
            HeaderActionParameters parameters = default;
            DeliveryRuleAction     name       = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("parameters"))
                {
                    parameters = HeaderActionParameters.DeserializeHeaderActionParameters(property.Value);
                    continue;
                }
                if (property.NameEquals("name"))
                {
                    name = new DeliveryRuleAction(property.Value.GetString());
                    continue;
                }
            }
            return(new DeliveryRuleResponseHeaderAction(name, parameters));
        }
Exemple #3
0
 internal DeliveryRuleRequestHeaderAction(DeliveryRuleActionType name, HeaderActionParameters parameters) : base(name)
 {
     Parameters = parameters;
     Name       = name;
 }
Exemple #4
0
 internal DeliveryRuleResponseHeaderAction(DeliveryRuleAction name, HeaderActionParameters parameters) : base(name)
 {
     Parameters = parameters;
     Name       = name;
 }