public DeliveryRuleSslProtocolCondition(SslProtocolMatchConditionDefinition parameters)
        {
            if (parameters == null)
            {
                throw new ArgumentNullException(nameof(parameters));
            }

            Parameters = parameters;
            Name       = MatchVariable.SslProtocol;
        }
Пример #2
0
        internal static DeliveryRuleSslProtocolCondition DeserializeDeliveryRuleSslProtocolCondition(JsonElement element)
        {
            SslProtocolMatchConditionDefinition parameters = default;
            MatchVariable name = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("parameters"))
                {
                    parameters = SslProtocolMatchConditionDefinition.DeserializeSslProtocolMatchConditionDefinition(property.Value);
                    continue;
                }
                if (property.NameEquals("name"))
                {
                    name = new MatchVariable(property.Value.GetString());
                    continue;
                }
            }
            return(new DeliveryRuleSslProtocolCondition(name, parameters));
        }
 internal DeliveryRuleSslProtocolCondition(MatchVariable name, SslProtocolMatchConditionDefinition parameters) : base(name)
 {
     Parameters = parameters;
     Name       = name;
 }