Ejemplo n.º 1
0
        public DeliveryRuleSslProtocolCondition(SslProtocolMatchConditionParameters parameters)
        {
            if (parameters == null)
            {
                throw new ArgumentNullException(nameof(parameters));
            }

            Parameters = parameters;
            Name       = MatchVariable.SslProtocol;
        }
        internal static DeliveryRuleSslProtocolCondition DeserializeDeliveryRuleSslProtocolCondition(JsonElement element)
        {
            SslProtocolMatchConditionParameters parameters = default;
            MatchVariable name = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("parameters"))
                {
                    parameters = SslProtocolMatchConditionParameters.DeserializeSslProtocolMatchConditionParameters(property.Value);
                    continue;
                }
                if (property.NameEquals("name"))
                {
                    name = new MatchVariable(property.Value.GetString());
                    continue;
                }
            }
            return(new DeliveryRuleSslProtocolCondition(name, parameters));
        }
Ejemplo n.º 3
0
 internal DeliveryRuleSslProtocolCondition(MatchVariable name, SslProtocolMatchConditionParameters parameters) : base(name)
 {
     Parameters = parameters;
     Name       = name;
 }