50 references to ThrowIfNull
Microsoft.AspNetCore.Authorization (50)
AssertionRequirement.cs (2)
27ArgumentNullThrowHelper.ThrowIfNull(handler); 38ArgumentNullThrowHelper.ThrowIfNull(handler);
AuthorizationBuilder.cs (2)
111ArgumentNullThrowHelper.ThrowIfNull(configurePolicy); 138ArgumentNullThrowHelper.ThrowIfNull(configurePolicy);
AuthorizationHandlerContext.cs (1)
33ArgumentNullThrowHelper.ThrowIfNull(requirements);
AuthorizationOptions.cs (6)
51ArgumentNullThrowHelper.ThrowIfNull(name); 52ArgumentNullThrowHelper.ThrowIfNull(policy); 64ArgumentNullThrowHelper.ThrowIfNull(name); 65ArgumentNullThrowHelper.ThrowIfNull(configurePolicy); 79ArgumentNullThrowHelper.ThrowIfNull(name); 91ArgumentNullThrowHelper.ThrowIfNull(name);
AuthorizationPolicy.cs (6)
31ArgumentNullThrowHelper.ThrowIfNull(requirements); 32ArgumentNullThrowHelper.ThrowIfNull(authenticationSchemes); 64ArgumentNullThrowHelper.ThrowIfNull(policies); 79ArgumentNullThrowHelper.ThrowIfNull(policies); 118ArgumentNullThrowHelper.ThrowIfNull(policyProvider); 119ArgumentNullThrowHelper.ThrowIfNull(authorizeData);
AuthorizationPolicyBuilder.cs (9)
94ArgumentNullThrowHelper.ThrowIfNull(policy); 110ArgumentNullThrowHelper.ThrowIfNull(claimType); 124ArgumentNullThrowHelper.ThrowIfNull(claimType); 138ArgumentNullThrowHelper.ThrowIfNull(claimType); 152ArgumentNullThrowHelper.ThrowIfNull(roles); 165ArgumentNullThrowHelper.ThrowIfNull(roles); 178ArgumentNullThrowHelper.ThrowIfNull(userName); 201ArgumentNullThrowHelper.ThrowIfNull(handler); 214ArgumentNullThrowHelper.ThrowIfNull(handler);
AuthorizationServiceCollectionExtensions.cs (3)
24ArgumentNullThrowHelper.ThrowIfNull(services); 47ArgumentNullThrowHelper.ThrowIfNull(services); 48ArgumentNullThrowHelper.ThrowIfNull(configure);
AuthorizationServiceExtensions.cs (8)
29ArgumentNullThrowHelper.ThrowIfNull(service); 30ArgumentNullThrowHelper.ThrowIfNull(requirement); 48ArgumentNullThrowHelper.ThrowIfNull(service); 49ArgumentNullThrowHelper.ThrowIfNull(policy); 66ArgumentNullThrowHelper.ThrowIfNull(service); 67ArgumentNullThrowHelper.ThrowIfNull(policy); 84ArgumentNullThrowHelper.ThrowIfNull(service); 85ArgumentNullThrowHelper.ThrowIfNull(policyName);
ClaimsAuthorizationRequirement.cs (1)
28ArgumentNullThrowHelper.ThrowIfNull(claimType);
DefaultAuthorizationHandlerProvider.cs (1)
25ArgumentNullThrowHelper.ThrowIfNull(handlers);
DefaultAuthorizationPolicyProvider.cs (1)
27ArgumentNullThrowHelper.ThrowIfNull(options);
DefaultAuthorizationService.cs (8)
37ArgumentNullThrowHelper.ThrowIfNull(options); 38ArgumentNullThrowHelper.ThrowIfNull(policyProvider); 39ArgumentNullThrowHelper.ThrowIfNull(handlers); 40ArgumentNullThrowHelper.ThrowIfNull(logger); 41ArgumentNullThrowHelper.ThrowIfNull(contextFactory); 42ArgumentNullThrowHelper.ThrowIfNull(evaluator); 64ArgumentNullThrowHelper.ThrowIfNull(requirements); 101ArgumentNullThrowHelper.ThrowIfNull(policyName);
NameAuthorizationRequirement.cs (1)
23ArgumentNullThrowHelper.ThrowIfNull(requiredName);
RolesAuthorizationRequirement.cs (1)
24ArgumentNullThrowHelper.ThrowIfNull(allowedRoles);