62 instantiations of AntiforgeryOptions
Microsoft.AspNetCore.Antiforgery.Test (62)
AntiforgeryOptionsSetupTest.cs (1)
66
var options = new
AntiforgeryOptions
();
DefaultAntiforgeryTest.cs (42)
27
var options = new
AntiforgeryOptions
50
var options = new
AntiforgeryOptions
()
71
var options = new
AntiforgeryOptions
()
92
var options = new
AntiforgeryOptions
()
113
var options = new
AntiforgeryOptions
()
136
new
AntiforgeryOptions
(),
165
new
AntiforgeryOptions
(),
193
new
AntiforgeryOptions
(),
227
new
AntiforgeryOptions
(),
258
new
AntiforgeryOptions
(),
291
new
AntiforgeryOptions
(),
321
new
AntiforgeryOptions
(),
357
new
AntiforgeryOptions
(),
450
new
AntiforgeryOptions
(),
484
new
AntiforgeryOptions
(),
522
new
AntiforgeryOptions
(),
571
new
AntiforgeryOptions
(),
603
var context = CreateMockContext(new
AntiforgeryOptions
(), antiforgeryFeature: antiforgeryFeature);
636
var context = CreateMockContext(new
AntiforgeryOptions
(), antiforgeryFeature: antiforgeryFeature);
676
var context = CreateMockContext(new
AntiforgeryOptions
(), antiforgeryFeature: antiforgeryFeature);
715
var context = CreateMockContext(new
AntiforgeryOptions
());
752
var context = CreateMockContext(new
AntiforgeryOptions
());
780
var context = CreateMockContext(new
AntiforgeryOptions
(), antiforgeryFeature: antiforgeryFeature);
812
var context = CreateMockContext(new
AntiforgeryOptions
(), antiforgeryFeature: antiforgeryFeature);
843
var context = CreateMockContext(new
AntiforgeryOptions
()
867
var context = CreateMockContext(new
AntiforgeryOptions
()
891
var context = CreateMockContext(new
AntiforgeryOptions
()
917
var context = CreateMockContext(new
AntiforgeryOptions
()
953
var context = CreateMockContext(new
AntiforgeryOptions
(), antiforgeryFeature: antiforgeryFeature);
986
var options = new
AntiforgeryOptions
();
1011
var options = new
AntiforgeryOptions
();
1034
var options = new
AntiforgeryOptions
();
1057
var options = new
AntiforgeryOptions
();
1085
var options = new
AntiforgeryOptions
()
1129
new
AntiforgeryOptions
(),
1173
new
AntiforgeryOptions
(),
1212
new
AntiforgeryOptions
(),
1249
new
AntiforgeryOptions
(),
1288
new
AntiforgeryOptions
(),
1326
new
AntiforgeryOptions
(),
1360
new
AntiforgeryOptions
(),
1571
public AntiforgeryOptions Value { get; set; } = new
AntiforgeryOptions
();
DefaultAntiforgeryTokenGeneratorTest.cs (1)
87
var options = new
AntiforgeryOptions
();
DefaultAntiforgeryTokenStoreTest.cs (17)
19
var options = new
AntiforgeryOptions
38
var options = new
AntiforgeryOptions
59
var options = new
AntiforgeryOptions
80
var options = new
AntiforgeryOptions
108
var options = new
AntiforgeryOptions
136
var options = new
AntiforgeryOptions
166
var options = new
AntiforgeryOptions
195
var options = new
AntiforgeryOptions
223
var options = new
AntiforgeryOptions
250
var options = new
AntiforgeryOptions
275
var options = new
AntiforgeryOptions
303
var options = new
AntiforgeryOptions
328
var options = new
AntiforgeryOptions
370
var options = new
AntiforgeryOptions
()
414
var options = new
AntiforgeryOptions
450
var options = new
AntiforgeryOptions
489
var options = new
AntiforgeryOptions
TestOptionsManager.cs (1)
19
public AntiforgeryOptions Value { get; set; } = new
AntiforgeryOptions
();
64 references to AntiforgeryOptions
Microsoft.AspNetCore.Antiforgery (12)
AntiforgeryServiceCollectionExtensions.cs (3)
29
ServiceDescriptor.Transient<IConfigureOptions<
AntiforgeryOptions
>, AntiforgeryOptionsSetup>());
53
/// <param name="setupAction">An <see cref="Action{AntiforgeryOptions}"/> to configure the provided <see cref="
AntiforgeryOptions
"/>.</param>
55
public static IServiceCollection AddAntiforgery(this IServiceCollection services, Action<
AntiforgeryOptions
> setupAction)
Internal\AntiforgeryOptionsSetup.cs (3)
12
internal sealed class AntiforgeryOptionsSetup : IConfigureOptions<
AntiforgeryOptions
>
21
public void Configure(
AntiforgeryOptions
options)
28
options.Cookie.Name =
AntiforgeryOptions
.DefaultCookiePrefix + ComputeCookieName(applicationId);
Internal\DefaultAntiforgery.cs (4)
19
private readonly
AntiforgeryOptions
_options;
26
IOptions<
AntiforgeryOptions
> antiforgeryOptionsAccessor,
261
string.Join(".", nameof(
AntiforgeryOptions
), nameof(
AntiforgeryOptions
.Cookie), nameof(CookieBuilder.SecurePolicy)),
Internal\DefaultAntiforgeryTokenStore.cs (2)
13
private readonly
AntiforgeryOptions
_options;
15
public DefaultAntiforgeryTokenStore(IOptions<
AntiforgeryOptions
> optionsAccessor)
Microsoft.AspNetCore.Antiforgery.Test (40)
AntiforgeryOptionsSetupTest.cs (4)
28
var options = services.GetRequiredService<IOptions<
AntiforgeryOptions
>>();
42
serviceCollection.Configure<
AntiforgeryOptions
>(o =>
53
var options = services.GetRequiredService<IOptions<
AntiforgeryOptions
>>();
66
var
options = new AntiforgeryOptions();
DefaultAntiforgeryTest.cs (15)
27
var
options = new AntiforgeryOptions
50
var
options = new AntiforgeryOptions()
71
var
options = new AntiforgeryOptions()
92
var
options = new AntiforgeryOptions()
113
var
options = new AntiforgeryOptions()
986
var
options = new AntiforgeryOptions();
1011
var
options = new AntiforgeryOptions();
1034
var
options = new AntiforgeryOptions();
1057
var
options = new AntiforgeryOptions();
1085
var
options = new AntiforgeryOptions()
1381
AntiforgeryOptions
? options = null,
1481
AntiforgeryOptions
options,
1556
public
AntiforgeryOptions
Options { get; set; } = default!;
1569
private class TestOptionsManager : IOptions<
AntiforgeryOptions
>
1571
public
AntiforgeryOptions
Value { get; set; } = new AntiforgeryOptions();
DefaultAntiforgeryTokenGeneratorTest.cs (1)
87
var
options = new AntiforgeryOptions();
DefaultAntiforgeryTokenStoreTest.cs (17)
19
var
options = new AntiforgeryOptions
38
var
options = new AntiforgeryOptions
59
var
options = new AntiforgeryOptions
80
var
options = new AntiforgeryOptions
108
var
options = new AntiforgeryOptions
136
var
options = new AntiforgeryOptions
166
var
options = new AntiforgeryOptions
195
var
options = new AntiforgeryOptions
223
var
options = new AntiforgeryOptions
250
var
options = new AntiforgeryOptions
275
var
options = new AntiforgeryOptions
303
var
options = new AntiforgeryOptions
328
var
options = new AntiforgeryOptions
370
var
options = new AntiforgeryOptions()
414
var
options = new AntiforgeryOptions
450
var
options = new AntiforgeryOptions
489
var
options = new AntiforgeryOptions
TestOptionsManager.cs (3)
8
public class TestOptionsManager : IOptions<
AntiforgeryOptions
>
14
public TestOptionsManager(
AntiforgeryOptions
options)
19
public
AntiforgeryOptions
Value { get; set; } = new AntiforgeryOptions();
Microsoft.AspNetCore.Mvc.FunctionalTests (5)
AntiforgeryMiddlewareTest.cs (4)
37
var antiforgeryOptions = app.Services.GetRequiredService<IOptions<
AntiforgeryOptions
>>();
121
var antiforgeryOptions = app.Services.GetRequiredService<IOptions<
AntiforgeryOptions
>>();
153
var antiforgeryOptions = app.Services.GetRequiredService<IOptions<
AntiforgeryOptions
>>();
185
var antiforgeryOptions = app.Services.GetRequiredService<IOptions<
AntiforgeryOptions
>>();
SimpleWithWebApplicationBuilderTests.cs (1)
267
var antiforgeryOptions = Factory.Services.GetRequiredService<IOptions<
AntiforgeryOptions
>>();
Microsoft.AspNetCore.Routing.FunctionalTests (7)
MinimalFormTests.cs (7)
51
var antiforgeryOptions = host.Services.GetRequiredService<IOptions<
AntiforgeryOptions
>>();
111
var antiforgeryOptions = host.Services.GetRequiredService<IOptions<
AntiforgeryOptions
>>();
472
var antiforgeryOptions = host.Services.GetRequiredService<IOptions<
AntiforgeryOptions
>>();
531
var antiforgeryOptions = host.Services.GetRequiredService<IOptions<
AntiforgeryOptions
>>();
583
var antiforgeryOptions = host.Services.GetRequiredService<IOptions<
AntiforgeryOptions
>>();
635
var antiforgeryOptions = host.Services.GetRequiredService<IOptions<
AntiforgeryOptions
>>();
684
var antiforgeryOptions = host.Services.GetRequiredService<IOptions<
AntiforgeryOptions
>>();