Show / Hide Table of Contents

Class RoleStore<TRole>

Inheritance
System.Object
RoleStore<TRole>
Namespace:InfinniPlatform.Auth.DocumentStorage
Assembly:InfinniPlatform.Auth.dll
Syntax
public class RoleStore<TRole> : IRoleStore<TRole> where TRole : AppUserRole
Type Parameters
Name Description
TRole

Constructors

| Improve this Doc View Source

RoleStore(ISystemDocumentStorageFactory)

Declaration
public RoleStore(ISystemDocumentStorageFactory documentStorageFactory)
Parameters
Type Name Description
ISystemDocumentStorageFactory documentStorageFactory

Methods

| Improve this Doc View Source

CreateAsync(TRole, CancellationToken)

Declaration
public virtual Task<IdentityResult> CreateAsync(TRole role, CancellationToken token)
Parameters
Type Name Description
TRole role
CancellationToken token
Returns
Type Description
Task<IdentityResult>
| Improve this Doc View Source

DeleteAsync(TRole, CancellationToken)

Declaration
public virtual Task<IdentityResult> DeleteAsync(TRole role, CancellationToken token)
Parameters
Type Name Description
TRole role
CancellationToken token
Returns
Type Description
Task<IdentityResult>
| Improve this Doc View Source

Dispose()

Declaration
public virtual void Dispose()
| Improve this Doc View Source

FindByIdAsync(String, CancellationToken)

Declaration
public virtual Task<TRole> FindByIdAsync(string roleId, CancellationToken token)
Parameters
Type Name Description
System.String roleId
CancellationToken token
Returns
Type Description
Task<TRole>
| Improve this Doc View Source

FindByNameAsync(String, CancellationToken)

Declaration
public virtual Task<TRole> FindByNameAsync(string normalizedName, CancellationToken token)
Parameters
Type Name Description
System.String normalizedName
CancellationToken token
Returns
Type Description
Task<TRole>
| Improve this Doc View Source

GetNormalizedRoleNameAsync(TRole, CancellationToken)

Declaration
public virtual Task<string> GetNormalizedRoleNameAsync(TRole role, CancellationToken token)
Parameters
Type Name Description
TRole role
CancellationToken token
Returns
Type Description
Task<System.String>
| Improve this Doc View Source

GetRoleIdAsync(TRole, CancellationToken)

Declaration
public virtual Task<string> GetRoleIdAsync(TRole role, CancellationToken token)
Parameters
Type Name Description
TRole role
CancellationToken token
Returns
Type Description
Task<System.String>
| Improve this Doc View Source

GetRoleNameAsync(TRole, CancellationToken)

Declaration
public virtual Task<string> GetRoleNameAsync(TRole role, CancellationToken token)
Parameters
Type Name Description
TRole role
CancellationToken token
Returns
Type Description
Task<System.String>
| Improve this Doc View Source

SetNormalizedRoleNameAsync(TRole, String, CancellationToken)

Declaration
public virtual Task SetNormalizedRoleNameAsync(TRole role, string normalizedName, CancellationToken token)
Parameters
Type Name Description
TRole role
System.String normalizedName
CancellationToken token
Returns
Type Description
Task
| Improve this Doc View Source

SetRoleNameAsync(TRole, String, CancellationToken)

Declaration
public virtual Task SetRoleNameAsync(TRole role, string roleName, CancellationToken token)
Parameters
Type Name Description
TRole role
System.String roleName
CancellationToken token
Returns
Type Description
Task
| Improve this Doc View Source

UpdateAsync(TRole, CancellationToken)

Declaration
public virtual Task<IdentityResult> UpdateAsync(TRole role, CancellationToken token)
Parameters
Type Name Description
TRole role
CancellationToken token
Returns
Type Description
Task<IdentityResult>

Extension Methods

DynamicCollectionExtensions.GetItem(Object, Int32)
DynamicCollectionExtensions.SetItem(Object, Int32, Object)
DynamicCollectionExtensions.AddItem(Object, Object)
DynamicCollectionExtensions.InsertItem(Object, Int32, Object)
DynamicCollectionExtensions.RemoveItem(Object, Object)
DynamicCollectionExtensions.RemoveItemAt(Object, Int32)
DynamicCollectionExtensions.MoveItem(Object, Object, Int32)
DynamicObjectExtensions.TryGetPropertyValue(Object, String)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TryGetPropertyValueByPath(Object, String)
DynamicObjectExtensions.TrySetPropertyValueByPath(Object, String, Object)
ReflectionExtensions.IsInstanceOfType(Object, Type)
ReflectionExtensions.GetMemberValue(Object, String)
ReflectionExtensions.SetMemberValue(Object, String, Object)
ReflectionExtensions.InvokeMember(Object, String, Object[], out Object, Type[])
ReflectionExtensions.GetFieldValue(Object, FieldInfo)
ReflectionExtensions.SetFieldValue(Object, FieldInfo, Object)
ReflectionExtensions.GetPropertyValue(Object, PropertyInfo)
ReflectionExtensions.SetPropertyValue(Object, PropertyInfo, Object)
ReflectionExtensions.GetMethodDelegate(Object, MethodInfo)
ReflectionExtensions.GetEventDelegate(Object, EventInfo)
ReflectionExtensions.SetEventDelegate(Object, EventInfo, Object)
CommonExtensions.ExecuteSilent<T>(T, Action<T>)
  • Improve this Doc
  • View Source
Back to top © Copyright Infinnity Solutions Ltd, 2010–2017.