4 types derived from AntiforgeryStateProvider
Microsoft.AspNetCore.Components.Endpoints (1)
src\Components\Shared\src\DefaultAntiforgeryStateProvider.cs (1)
9internal class DefaultAntiforgeryStateProvider : AntiforgeryStateProvider, IDisposable
Microsoft.AspNetCore.Components.Server (1)
src\Components\Shared\src\DefaultAntiforgeryStateProvider.cs (1)
9internal class DefaultAntiforgeryStateProvider : AntiforgeryStateProvider, IDisposable
Microsoft.AspNetCore.Components.Web (1)
src\Components\Shared\src\DefaultAntiforgeryStateProvider.cs (1)
9internal class DefaultAntiforgeryStateProvider : AntiforgeryStateProvider, IDisposable
Microsoft.AspNetCore.Components.WebAssembly (1)
src\Components\Shared\src\DefaultAntiforgeryStateProvider.cs (1)
9internal class DefaultAntiforgeryStateProvider : AntiforgeryStateProvider, IDisposable
13 references to AntiforgeryStateProvider
Microsoft.AspNetCore.Components.Endpoints (2)
DependencyInjection\RazorComponentsServiceCollectionExtensions.cs (1)
79services.TryAddScoped<AntiforgeryStateProvider, EndpointAntiforgeryStateProvider>();
Rendering\EndpointHtmlRenderer.cs (1)
108if (httpContext.RequestServices.GetService<AntiforgeryStateProvider>() is EndpointAntiforgeryStateProvider antiforgery)
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
EndpointHtmlRendererTest.cs (1)
1681services.AddSingleton<AntiforgeryStateProvider, EndpointAntiforgeryStateProvider>();
RazorComponentResultTest.cs (1)
468.AddSingleton<AntiforgeryStateProvider, EndpointAntiforgeryStateProvider>()
Microsoft.AspNetCore.Components.Server (5)
Circuits\CircuitFactory.cs (2)
122var antiforgery = scope.ServiceProvider.GetService<AntiforgeryStateProvider>();
Circuits\CircuitHost.cs (2)
812var antiforgery = scope.ServiceProvider.GetService<AntiforgeryStateProvider>();
DependencyInjection\ComponentServiceCollectionExtensions.cs (1)
71services.TryAddScoped<AntiforgeryStateProvider, DefaultAntiforgeryStateProvider>();
Microsoft.AspNetCore.Components.Web (1)
Forms\AntiforgeryToken.cs (1)
23_requestToken = Services.GetService<AntiforgeryStateProvider>()?.GetAntiforgeryToken();
Microsoft.AspNetCore.Components.Web.Tests (1)
Forms\EditFormTest.cs (1)
25services.AddSingleton<AntiforgeryStateProvider, DefaultAntiforgeryStateProvider>();
Microsoft.AspNetCore.Components.WebAssembly (2)
Hosting\WebAssemblyHost.cs (1)
241_scope.ServiceProvider.GetRequiredService<AntiforgeryStateProvider>();
Hosting\WebAssemblyHostBuilder.cs (1)
308Services.AddSingleton<AntiforgeryStateProvider, DefaultAntiforgeryStateProvider>();