public UrlSigningAction(UrlSigningActionParameters parameters) { if (parameters == null) { throw new ArgumentNullException(nameof(parameters)); } Parameters = parameters; Name = DeliveryRuleAction.UrlSigning; }
internal static UrlSigningAction DeserializeUrlSigningAction(JsonElement element) { UrlSigningActionParameters parameters = default; DeliveryRuleAction name = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("parameters")) { parameters = UrlSigningActionParameters.DeserializeUrlSigningActionParameters(property.Value); continue; } if (property.NameEquals("name")) { name = new DeliveryRuleAction(property.Value.GetString()); continue; } } return(new UrlSigningAction(name, parameters)); }
internal UrlSigningAction(DeliveryRuleAction name, UrlSigningActionParameters parameters) : base(name) { Parameters = parameters; Name = name; }