AntiforgeryServiceCollectionExtensions.AddAntiforgery Yöntem

Tanım

Aşırı Yüklemeler

AddAntiforgery(IServiceCollection)

Belirtilen IServiceCollectionöğesine kötü amaçlı yazılımdan koruma hizmetleri ekler.

AddAntiforgery(IServiceCollection, Action<AntiforgeryOptions>)

Belirtilen IServiceCollectionöğesine kötü amaçlı yazılımdan koruma hizmetleri ekler.

AddAntiforgery(IServiceCollection)

Kaynak:
AntiforgeryServiceCollectionExtensions.cs
Kaynak:
AntiforgeryServiceCollectionExtensions.cs

Belirtilen IServiceCollectionöğesine kötü amaçlı yazılımdan koruma hizmetleri ekler.

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

Parametreler

services
IServiceCollection

IServiceCollection hizmet eklemek için.

Döndürülenler

IServiceCollection böylece ek çağrılar zincirlenebilir.

Şunlara uygulanır

AddAntiforgery(IServiceCollection, Action<AntiforgeryOptions>)

Kaynak:
AntiforgeryServiceCollectionExtensions.cs
Kaynak:
AntiforgeryServiceCollectionExtensions.cs

Belirtilen IServiceCollectionöğesine kötü amaçlı yazılımdan koruma hizmetleri ekler.

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

Parametreler

services
IServiceCollection

IServiceCollection hizmet eklemek için.

setupAction
Action<AntiforgeryOptions>

Sağlanan öğesini yapılandırmak için birAction<T>.AntiforgeryOptions

Döndürülenler

IServiceCollection böylece ek çağrılar zincirlenebilir.

Şunlara uygulanır