Aspectacular.AuthorizationDemandAttribute.AuthorizationDemandAttribute C# (CSharp) Method

AuthorizationDemandAttribute() protected method

protected AuthorizationDemandAttribute ( bool trueDemandAny_falseDemandAll, string demandedClaims ) : System.Security.Claims
trueDemandAny_falseDemandAll bool
demandedClaims string
return System.Security.Claims
        protected AuthorizationDemandAttribute(bool trueDemandAny_falseDemandAll, string[] demandedClaims)
        {
            if(demandedClaims.IsNullOrEmpty())
                throw new ArgumentNullException("demandedClaims collection cannot be empty.");

            this.DemandAny = trueDemandAny_falseDemandAll;
            this.DemandedClaims = demandedClaims;
        }