Beispiel #1
0
        public DeliveryRuleSslProtocolCondition(SslProtocolMatchCondition properties)
        {
            if (properties == null)
            {
                throw new ArgumentNullException(nameof(properties));
            }

            Properties = properties;
            Name       = MatchVariable.SslProtocol;
        }
Beispiel #2
0
        internal static DeliveryRuleSslProtocolCondition DeserializeDeliveryRuleSslProtocolCondition(JsonElement element)
        {
            SslProtocolMatchCondition parameters = default;
            MatchVariable             name       = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("parameters"))
                {
                    parameters = SslProtocolMatchCondition.DeserializeSslProtocolMatchCondition(property.Value);
                    continue;
                }
                if (property.NameEquals("name"))
                {
                    name = new MatchVariable(property.Value.GetString());
                    continue;
                }
            }
            return(new DeliveryRuleSslProtocolCondition(name, parameters));
        }
Beispiel #3
0
 internal DeliveryRuleSslProtocolCondition(MatchVariable name, SslProtocolMatchCondition properties) : base(name)
 {
     Properties = properties;
     Name       = name;
 }