Esempio n. 1
0
        /// <summary>Initializes a new instance of the <see cref="WebHookFilter"/> class.</summary>
        public WebHookFilter(IWebHookFilter filter)
        {
            if (filter == null)
            {
                throw new ArgumentNullException(nameof(filter));
            }

            Id      = filter.Id;
            Trigger = filter.Trigger;
        }
Esempio n. 2
0
        /// <summary>Initializes a new instance of the <see cref="WebHookFilter"/> class.</summary>
        public WebHookFilter(IWebHookFilter filter)
        {
            if (filter == null)
            {
                throw new ArgumentNullException(nameof(filter));
            }

            Id         = filter.Id;
            Trigger    = filter.Trigger;
            Parameters = filter.Parameters.ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
        }