IdentityServiceCollectionExtensions.ConfigureApplicationCookie 方法

定义

配置应用程序 Cookie。

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

参数

services
IServiceCollection

应用程序中可用的服务。

configure
Action<CookieAuthenticationOptions>

用于配置 的操作 CookieAuthenticationOptions

返回

服务。

适用于