Getting error with aspnet core 2.1 action filter due to missing suitable constructor
问题 I have made a claims filter public class ClaimRequirementAttribute : TypeFilterAttribute { public ClaimRequirementAttribute(string claimType, ClaimRoles claimValue) : base(typeof(ClaimRequirementFilter)) { Arguments = new object[] {new Claim(claimType, claimValue.ToString()) }; } } public class ClaimRequirementFilter : IAuthorizationFilter { public void OnAuthorization(AuthorizationFilterContext context) { var headers = context.HttpContext.Request.Headers; var tokenSuccess = headers