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