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