IRoleStore<TRole> IRoleStore<TRole> IRoleStore<TRole> Interface

Definition

Provides an abstraction for a storage and management of roles.

public interface IRoleStore<TRole> : IDisposable where TRole : class
type IRoleStore<'Role (requires 'Role : null)> = interface
    interface IDisposable
Public Interface IRoleStore(Of TRole)
Implements IDisposable

Type Parameters

TRole

The type that represents a role.

Derived
Implements

Methods

CreateAsync(TRole, CancellationToken) CreateAsync(TRole, CancellationToken) CreateAsync(TRole, CancellationToken)

Creates a new role in a store as an asynchronous operation.

DeleteAsync(TRole, CancellationToken) DeleteAsync(TRole, CancellationToken) DeleteAsync(TRole, CancellationToken)

Deletes a role from the store as an asynchronous operation.

FindByIdAsync(String, CancellationToken) FindByIdAsync(String, CancellationToken) FindByIdAsync(String, CancellationToken)

Finds the role who has the specified ID as an asynchronous operation.

FindByNameAsync(String, CancellationToken) FindByNameAsync(String, CancellationToken) FindByNameAsync(String, CancellationToken)

Finds the role who has the specified normalized name as an asynchronous operation.

GetNormalizedRoleNameAsync(TRole, CancellationToken) GetNormalizedRoleNameAsync(TRole, CancellationToken) GetNormalizedRoleNameAsync(TRole, CancellationToken)

Get a role's normalized name as an asynchronous operation.

GetRoleIdAsync(TRole, CancellationToken) GetRoleIdAsync(TRole, CancellationToken) GetRoleIdAsync(TRole, CancellationToken)

Gets the ID for a role from the store as an asynchronous operation.

GetRoleNameAsync(TRole, CancellationToken) GetRoleNameAsync(TRole, CancellationToken) GetRoleNameAsync(TRole, CancellationToken)

Gets the name of a role from the store as an asynchronous operation.

SetNormalizedRoleNameAsync(TRole, String, CancellationToken) SetNormalizedRoleNameAsync(TRole, String, CancellationToken) SetNormalizedRoleNameAsync(TRole, String, CancellationToken)

Set a role's normalized name as an asynchronous operation.

SetRoleNameAsync(TRole, String, CancellationToken) SetRoleNameAsync(TRole, String, CancellationToken) SetRoleNameAsync(TRole, String, CancellationToken)

Sets the name of a role in the store as an asynchronous operation.

UpdateAsync(TRole, CancellationToken) UpdateAsync(TRole, CancellationToken) UpdateAsync(TRole, CancellationToken)

Updates a role in a store as an asynchronous operation.

Applies to