1 write to Services
Microsoft.AspNetCore.Authorization (1)
AuthorizationBuilder.cs (1)
21
=>
Services
= services;
11 references to Services
Microsoft.AspNetCore.Authorization (5)
AuthorizationBuilder.cs (5)
35
Services
.Configure<AuthorizationOptions>(o => o.InvokeHandlersAfterFailure = invoke);
48
Services
.Configure<AuthorizationOptions>(o => o.DefaultPolicy = policy);
63
Services
.Configure<AuthorizationOptions>(o => o.FallbackPolicy = policy);
75
Services
.Configure<AuthorizationOptions>(o => o.AddPolicy(name, policy));
87
Services
.Configure<AuthorizationOptions>(o => o.AddPolicy(name, configurePolicy));
Microsoft.AspNetCore.Authorization.Test (6)
AuthorizationBuilderTests.cs (6)
21
var options = builder.
Services
.BuildServiceProvider().GetRequiredService<IOptions<AuthorizationOptions>>().Value;
37
var options = builder.
Services
.BuildServiceProvider().GetRequiredService<IOptions<AuthorizationOptions>>().Value;
52
var options = builder.
Services
.BuildServiceProvider().GetRequiredService<IOptions<AuthorizationOptions>>().Value;
68
var options = builder.
Services
.BuildServiceProvider().GetRequiredService<IOptions<AuthorizationOptions>>().Value;
83
var options = builder.
Services
.BuildServiceProvider().GetRequiredService<IOptions<AuthorizationOptions>>().Value;
97
var options = builder.
Services
.BuildServiceProvider().GetRequiredService<IOptions<AuthorizationOptions>>().Value;