Condividi tramite


DataProtectionServiceCollectionExtensions.AddDataProtection Metodo

Definizione

Overload

AddDataProtection(IServiceCollection)

Aggiunge i servizi di protezione dei dati all'oggetto specificato IServiceCollection.

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

Aggiunge i servizi di protezione dei dati all'oggetto specificato IServiceCollection.

AddDataProtection(IServiceCollection)

Origine:
DataProtectionServiceCollectionExtensions.cs
Origine:
DataProtectionServiceCollectionExtensions.cs
Origine:
DataProtectionServiceCollectionExtensions.cs
Origine:
DataProtectionServiceCollectionExtensions.cs
Origine:
DataProtectionServiceCollectionExtensions.cs
Origine:
DataProtectionServiceCollectionExtensions.cs
Origine:
DataProtectionServiceCollectionExtensions.cs
Origine:
DataProtectionServiceCollectionExtensions.cs

Aggiunge i servizi di protezione dei dati all'oggetto specificato IServiceCollection.

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

Parametri

services
IServiceCollection

Oggetto IServiceCollection in cui aggiungere i servizi.

Restituisce

Si applica a

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

Origine:
DataProtectionServiceCollectionExtensions.cs
Origine:
DataProtectionServiceCollectionExtensions.cs
Origine:
DataProtectionServiceCollectionExtensions.cs
Origine:
DataProtectionServiceCollectionExtensions.cs
Origine:
DataProtectionServiceCollectionExtensions.cs
Origine:
DataProtectionServiceCollectionExtensions.cs
Origine:
DataProtectionServiceCollectionExtensions.cs
Origine:
DataProtectionServiceCollectionExtensions.cs

Aggiunge i servizi di protezione dei dati all'oggetto specificato IServiceCollection.

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddDataProtection (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.DataProtection.DataProtectionOptions> setupAction);
static member AddDataProtection : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.DataProtection.DataProtectionOptions> -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function AddDataProtection (services As IServiceCollection, setupAction As Action(Of DataProtectionOptions)) As IDataProtectionBuilder

Parametri

services
IServiceCollection

Oggetto IServiceCollection in cui aggiungere i servizi.

setupAction
Action<DataProtectionOptions>

Oggetto Action<T> per la configurazione dell'oggetto DataProtectionOptions fornito.

Restituisce

Riferimento a questa istanza dopo il completamento dell'operazione.

Si applica a