Interface IMultitenantUserStore<TUser>
Provides an abstraction for a store which manages user accounts in a multi-tenant environment.
Inherited Members
Namespace: IRM.AspNetCore.Identity
Assembly: IRM.AspNetCore.Identity.dll
Syntax
public interface IMultitenantUserStore<TUser> : IUserStore<TUser>, IUserStore<TUser>, IDisposable, IEventStore where TUser : class
Type Parameters
TUser
The type encapsulating a user. |
Methods
FindUsersByEmailAsync(String, CancellationToken)
Finds and returns one or more users, if any, who has the specified normalized email address, without filtering on a tenant.
Declaration
Task<List<TUser>> FindUsersByEmailAsync(string normalizedEmail, CancellationToken cancellationToken = default(CancellationToken))
Parameters
String
normalizedEmail
The normalized email address to search for. |
System.Threading.CancellationToken
cancellationToken
The System.Threading.CancellationToken used to propagate notifications that the operation should be canceled. |
Returns
System.Threading.Tasks.Task<List<TUser>>
The System.Threading.Tasks.Task that represents the asynchronous operation, containing the users matching the specified |
FindUsersByLoginAsync(String, String, CancellationToken)
Finds and returns a list of users associated with the specified external login provider and login provider key, without filtering on a tenant.
Declaration
Task<List<TUser>> FindUsersByLoginAsync(string loginProvider, string providerKey, CancellationToken cancellationToken = default(CancellationToken))
Parameters
String
loginProvider
The login provider who provided the |
String
providerKey
The key provided by the |
System.Threading.CancellationToken
cancellationToken
The System.Threading.CancellationToken used to propagate notifications that the operation should be canceled. |
Returns
System.Threading.Tasks.Task<List<TUser>>
The System.Threading.Tasks.Task for the asynchronous operation, containing the users, if any which matched the specified login provider and key. |
FindUsersByNameAsync(String, CancellationToken)
Finds and returns one or more users, if any, who has the specified normalized user name, without filtering on a tenant.
Declaration
Task<List<TUser>> FindUsersByNameAsync(string normalizedUserName, CancellationToken cancellationToken = default(CancellationToken))
Parameters
String
normalizedUserName
The normalized user name to search for. |
System.Threading.CancellationToken
cancellationToken
The System.Threading.CancellationToken used to propagate notifications that the operation should be canceled. |
Returns
System.Threading.Tasks.Task<List<TUser>>
The System.Threading.Tasks.Task that represents the asynchronous operation, containing the users matching the specified |