ข้ามไปยังเนื้อหา

Class IdentityAspNetCoreServiceCollectionExtensions

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Identity.AspNetCore.Hosting
Assembly: Cephalon.Identity.AspNetCore.dll

Registers the ASP.NET Core identity adapter services used by Cephalon.

public static class IdentityAspNetCoreServiceCollectionExtensions

objectIdentityAspNetCoreServiceCollectionExtensions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

AddCephalonIdentityAspNetCore(IServiceCollection, IConfiguration?, Action<IdentityAspNetCoreOptions>?)

Section titled “ AddCephalonIdentityAspNetCore(IServiceCollection, IConfiguration?, Action<IdentityAspNetCoreOptions>?)”

Adds the Cephalon ASP.NET Core identity adapter to the service collection.

public static IServiceCollection AddCephalonIdentityAspNetCore(this IServiceCollection services, IConfiguration? configuration = null, Action<IdentityAspNetCoreOptions>? configure = null)

services IServiceCollection

The service collection to extend.

configuration IConfiguration?

The optional configuration root used to populate from Engine:Identity:AspNetCore.

configure Action<IdentityAspNetCoreOptions>?

An optional callback that can extend or override the configuration-driven ASP.NET Core identity adapter options.

IServiceCollection

The same service collection for fluent registration.

When Cephalon.Audit is also active and the host has not already supplied a custom , this registration also bridges the current authenticated into the ambient audit actor contract.