public DeliveryRuleUriFileExtensionCondition(UriFileExtensionMatchCondition properties) { if (properties == null) { throw new ArgumentNullException(nameof(properties)); } Properties = properties; Name = MatchVariable.UriFileExtension; }
internal static DeliveryRuleUriFileExtensionCondition DeserializeDeliveryRuleUriFileExtensionCondition(JsonElement element) { UriFileExtensionMatchCondition parameters = default; MatchVariable name = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parameters")) { parameters = UriFileExtensionMatchCondition.DeserializeUriFileExtensionMatchCondition(property.Value); continue; } if (property.NameEquals("name")) { name = new MatchVariable(property.Value.GetString()); continue; } } return(new DeliveryRuleUriFileExtensionCondition(name, parameters)); }
internal DeliveryRuleUriFileExtensionCondition(MatchVariable name, UriFileExtensionMatchCondition properties) : base(name) { Properties = properties; Name = name; }