public DeliveryRuleRemoteAddressCondition(RemoteAddressMatchCondition properties) { if (properties == null) { throw new ArgumentNullException(nameof(properties)); } Properties = properties; Name = MatchVariable.RemoteAddress; }
internal static DeliveryRuleRemoteAddressCondition DeserializeDeliveryRuleRemoteAddressCondition(JsonElement element) { RemoteAddressMatchCondition parameters = default; MatchVariable name = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parameters")) { parameters = RemoteAddressMatchCondition.DeserializeRemoteAddressMatchCondition(property.Value); continue; } if (property.NameEquals("name")) { name = new MatchVariable(property.Value.GetString()); continue; } } return(new DeliveryRuleRemoteAddressCondition(name, parameters)); }
internal DeliveryRuleRemoteAddressCondition(MatchVariable name, RemoteAddressMatchCondition properties) : base(name) { Properties = properties; Name = name; }