IdentityServiceCollectionExtensions.ConfigureApplicationCookie Méthode

Définition

Configure le cookie d’application.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigureApplicationCookie (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> configure);
static member ConfigureApplicationCookie : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function ConfigureApplicationCookie (services As IServiceCollection, configure As Action(Of CookieAuthenticationOptions)) As IServiceCollection

Paramètres

services
IServiceCollection

Services disponibles dans l’application.

configure
Action<CookieAuthenticationOptions>

Action pour configurer le CookieAuthenticationOptions.

Retours

Les services.

S’applique à