Class TemplateIdentityRoleFactory<TRole>
Provides methods to create a TRole
from a given template.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
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 |
Returns
System.Threading.Tasks.Task<TRole>
The System.Threading.Tasks.Task that represents the asynchronous creation operation, containing the created |