Show / Hide Table of Contents

Interface IMultitenantUserStore<TUser>

Provides an abstraction for a store which manages user accounts in a multi-tenant environment.

Inherited Members
IUserStore<TUser>.GetSystemUsersAsync(CancellationToken)
IUserStore<TUser>.RemoveAuthenticatorKey(TUser, CancellationToken)
Microsoft.AspNetCore.Identity.IUserStore<TUser>.GetUserIdAsync(TUser, System.Threading.CancellationToken)
Microsoft.AspNetCore.Identity.IUserStore<TUser>.GetUserNameAsync(TUser, System.Threading.CancellationToken)
Microsoft.AspNetCore.Identity.IUserStore<TUser>.SetUserNameAsync(TUser, System.String, System.Threading.CancellationToken)
Microsoft.AspNetCore.Identity.IUserStore<TUser>.GetNormalizedUserNameAsync(TUser, System.Threading.CancellationToken)
Microsoft.AspNetCore.Identity.IUserStore<TUser>.SetNormalizedUserNameAsync(TUser, System.String, System.Threading.CancellationToken)
Microsoft.AspNetCore.Identity.IUserStore<TUser>.CreateAsync(TUser, System.Threading.CancellationToken)
Microsoft.AspNetCore.Identity.IUserStore<TUser>.UpdateAsync(TUser, System.Threading.CancellationToken)
Microsoft.AspNetCore.Identity.IUserStore<TUser>.DeleteAsync(TUser, System.Threading.CancellationToken)
Microsoft.AspNetCore.Identity.IUserStore<TUser>.FindByIdAsync(System.String, System.Threading.CancellationToken)
IUserStore<TUser>.FindByNameAsync(String, CancellationToken)
System.IDisposable.Dispose()
IEventStore.SaveEvents(IEventSourced, CancellationToken)
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 normalizedEmail if it exists.

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 providerKey.

String providerKey

The key provided by the loginProvider to identify a user.

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 normalizedUserName if it exists.

Back to top Generated by DocFX