public DeliveryRuleRequestHeaderCondition(RequestHeaderMatchConditionParameters parameters) { if (parameters == null) { throw new ArgumentNullException(nameof(parameters)); } Parameters = parameters; Name = MatchVariable.RequestHeader; }
internal static DeliveryRuleRequestHeaderCondition DeserializeDeliveryRuleRequestHeaderCondition(JsonElement element) { RequestHeaderMatchConditionParameters parameters = default; MatchVariable name = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parameters")) { parameters = RequestHeaderMatchConditionParameters.DeserializeRequestHeaderMatchConditionParameters(property.Value); continue; } if (property.NameEquals("name")) { name = new MatchVariable(property.Value.GetString()); continue; } } return(new DeliveryRuleRequestHeaderCondition(name, parameters)); }
internal DeliveryRuleRequestHeaderCondition(MatchVariable name, RequestHeaderMatchConditionParameters parameters) : base(name) { Parameters = parameters; Name = name; }