コード例 #1
0
        /// <summary>
        /// Creates EventValidator instance.
        /// </summary>
        /// <param name="secret">Secret string.</param>
        /// <returns>EventValidator instance.</returns>
        internal static EventValidator Create(string secret)
        {
            var validator = new EventValidator();

            if (!String.IsNullOrEmpty(secret))
            {
                validator.hashString = HashString.CreateHMACSHA1(secret);
            }

            return(validator);
        }