1 implementation of IAntiforgeryTokenGenerator
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultAntiforgeryTokenGenerator.cs (1)
11internal sealed class DefaultAntiforgeryTokenGenerator : IAntiforgeryTokenGenerator
8 references to IAntiforgeryTokenGenerator
Microsoft.AspNetCore.Antiforgery (3)
AntiforgeryServiceCollectionExtensions.cs (1)
31services.TryAddSingleton<IAntiforgeryTokenGenerator, DefaultAntiforgeryTokenGenerator>();
Internal\DefaultAntiforgery.cs (2)
20private readonly IAntiforgeryTokenGenerator _tokenGenerator; 27IAntiforgeryTokenGenerator tokenGenerator,
Microsoft.AspNetCore.Antiforgery.Microbenchmarks (2)
Benchmarks\AntiforgeryTokenGeneratorBenchmarks.cs (2)
14private IAntiforgeryTokenGenerator _tokenGenerator = null!; 38_tokenGenerator = serviceProvider.GetRequiredService<IAntiforgeryTokenGenerator>();
Microsoft.AspNetCore.Antiforgery.Test (3)
DefaultAntiforgeryTest.cs (3)
1382IAntiforgeryTokenGenerator? tokenGenerator = null, 1494var mockGenerator = new Mock<IAntiforgeryTokenGenerator>(MockBehavior.Strict); 1562public Mock<IAntiforgeryTokenGenerator> TokenGenerator { get; set; } = default!;