/// <summary>
        /// Initializes a new instance of the <see cref="ValidateHeaderAntiForgeryTokenAuthorizationFilter" /> class.
        /// </summary>
        /// <param name="antiForgery">The anti forgery system.</param>
        /// <param name="mvcOptions">The MVC options.</param>
        public ValidateHeaderAntiForgeryTokenAuthorizationFilter(
            AntiForgery antiForgery,
            IOptions<MvcOptions> mvcOptions)
        {
            if (antiForgery == null)
            {
                throw new ArgumentNullException("antiForgery");
            }

            if (mvcOptions == null)
            {
                throw new ArgumentNullException("mvcOptions");
            }

            this.antiForgery = antiForgery;
            this.antiForgeryCookieName = mvcOptions.Options.AntiForgeryOptions.CookieName;
        }
 public ValidateAntiForgeryTokenAuthorizationFilter([NotNull] AntiForgery antiForgery)
 {
     _antiForgery = antiForgery;
 }