AntiforgeryServiceCollectionExtensions.AddAntiforgery Método

Definição

Sobrecargas

AddAntiforgery(IServiceCollection)

Adiciona serviços antiforgeria ao especificado IServiceCollection.

AddAntiforgery(IServiceCollection, Action<AntiforgeryOptions>)

Adiciona serviços antiforgeria ao especificado IServiceCollection.

AddAntiforgery(IServiceCollection)

Origem:
AntiforgeryServiceCollectionExtensions.cs
Origem:
AntiforgeryServiceCollectionExtensions.cs
Origem:
AntiforgeryServiceCollectionExtensions.cs

Adiciona serviços antiforgeria ao especificado IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAntiforgery (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddAntiforgery : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAntiforgery (services As IServiceCollection) As IServiceCollection

Parâmetros

services
IServiceCollection

O IServiceCollection ao qual adicionar serviços.

Retornos

O IServiceCollection para que chamadas adicionais possam ser encadeadas.

Aplica-se a

AddAntiforgery(IServiceCollection, Action<AntiforgeryOptions>)

Origem:
AntiforgeryServiceCollectionExtensions.cs
Origem:
AntiforgeryServiceCollectionExtensions.cs
Origem:
AntiforgeryServiceCollectionExtensions.cs

Adiciona serviços antiforgeria ao especificado IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAntiforgery (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Antiforgery.AntiforgeryOptions> setupAction);
static member AddAntiforgery : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Antiforgery.AntiforgeryOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAntiforgery (services As IServiceCollection, setupAction As Action(Of AntiforgeryOptions)) As IServiceCollection

Parâmetros

services
IServiceCollection

O IServiceCollection ao qual adicionar serviços.

setupAction
Action<AntiforgeryOptions>

Um Action<T> para configurar o AntiforgeryOptions fornecido.

Retornos

O IServiceCollection para que chamadas adicionais possam ser encadeadas.

Aplica-se a