Show / Hide Table of Contents

Class TemplateIdentityRoleFactory<TRole>

Provides methods to create a TRole from a given template.

Inheritance
Object
TemplateIdentityRoleFactory<TRole>
Inherited Members
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: IRM.AspNetCore.Identity
Assembly: IRM.AspNetCore.Identity.EntityFrameworkCore.dll
Syntax
public class TemplateIdentityRoleFactory<TRole> : ITemplateRoleFactory<TRole> where TRole : IdentityRole, new()
Type Parameters
TRole

The type used to represent a role.

Constructors

TemplateIdentityRoleFactory(ITenantAccessor)

Creates a new instance of TemplateIdentityRoleFactory<TRole>.

Declaration
public TemplateIdentityRoleFactory(ITenantAccessor tenantAccessor)
Parameters
ITenantAccessor tenantAccessor

Methods

CreateAsync(IRoleTemplate)

Creates a TRole from a role template asynchronously.

Declaration
public virtual Task<TRole> CreateAsync(IRoleTemplate template)
Parameters
IRoleTemplate template

The role template to create a TRole from.

Returns
System.Threading.Tasks.Task<TRole>

The System.Threading.Tasks.Task that represents the asynchronous creation operation, containing the created TRole.

Implements
ITemplateRoleFactory<TRole>.CreateAsync(IRoleTemplate)
Back to top Generated by DocFX