AuthorizationServiceCollectionExtensions.AddAuthorizationCore 方法

定义

重载

AddAuthorizationCore(IServiceCollection)

将授权服务添加到指定的 IServiceCollection

AddAuthorizationCore(IServiceCollection, Action<AuthorizationOptions>)

将授权服务添加到指定的 IServiceCollection

AddAuthorizationCore(IServiceCollection)

Source:
AuthorizationServiceCollectionExtensions.cs
Source:
AuthorizationServiceCollectionExtensions.cs
Source:
AuthorizationServiceCollectionExtensions.cs
Source:
AuthorizationServiceCollectionExtensions.cs
Source:
AuthorizationServiceCollectionExtensions.cs
Source:
AuthorizationServiceCollectionExtensions.cs
Source:
AuthorizationServiceCollectionExtensions.cs

将授权服务添加到指定的 IServiceCollection

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

参数

services
IServiceCollection

要向其中添加服务的 IServiceCollection

返回

IServiceCollection,以便可以链接其他调用。

适用于

AddAuthorizationCore(IServiceCollection, Action<AuthorizationOptions>)

Source:
AuthorizationServiceCollectionExtensions.cs
Source:
AuthorizationServiceCollectionExtensions.cs
Source:
AuthorizationServiceCollectionExtensions.cs
Source:
AuthorizationServiceCollectionExtensions.cs
Source:
AuthorizationServiceCollectionExtensions.cs
Source:
AuthorizationServiceCollectionExtensions.cs
Source:
AuthorizationServiceCollectionExtensions.cs

将授权服务添加到指定的 IServiceCollection

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAuthorizationCore (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Authorization.AuthorizationOptions> configure);
static member AddAuthorizationCore : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Authorization.AuthorizationOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAuthorizationCore (services As IServiceCollection, configure As Action(Of AuthorizationOptions)) As IServiceCollection

参数

services
IServiceCollection

要向其中添加服务的 IServiceCollection

configure
Action<AuthorizationOptions>

一个操作委托,用于配置提供的 AuthorizationOptions

返回

IServiceCollection,以便可以链接其他调用。

适用于