Compartilhar via


IdentityServiceCollectionExtensions.ConfigureApplicationCookie Método

Definição

Configura o cookie de aplicativo.

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

Parâmetros

services
IServiceCollection

Os serviços disponíveis no aplicativo.

configure
Action<CookieAuthenticationOptions>

Uma ação para configurar o CookieAuthenticationOptions.

Retornos

Os serviços.

Aplica-se a