Share via


AuthorizationServiceCollectionExtensions.AddAuthorizationCore Method

Definition

Overloads

AddAuthorizationCore(IServiceCollection)

Adds authorization services to the specified IServiceCollection.

AddAuthorizationCore(IServiceCollection, Action<AuthorizationOptions>)

Adds authorization services to the specified IServiceCollection.

AddAuthorizationCore(IServiceCollection)

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

Adds authorization services to the specified 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

Parameters

services
IServiceCollection

The IServiceCollection to add services to.

Returns

The IServiceCollection so that additional calls can be chained.

Applies to

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

Adds authorization services to the specified 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

Parameters

services
IServiceCollection

The IServiceCollection to add services to.

configure
Action<AuthorizationOptions>

An action delegate to configure the provided AuthorizationOptions.

Returns

The IServiceCollection so that additional calls can be chained.

Applies to