Class MultitenantUserSearchStore<TListUser, TUser, TPerson, TContext>
Represents a persistence store for the combined user and person, used to list or search for users.
Inheritance
UserSearchStore<TListUser, TUser, TPerson, TContext>
MultitenantUserSearchStore<TListUser, TUser, TPerson, TContext>
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.EntityFrameworkCore
Assembly: IRM.AspNetCore.Identity.EntityFrameworkCore.dll
Syntax
public class MultitenantUserSearchStore<TListUser, TUser, TPerson, TContext> : UserSearchStore<TListUser, TUser, TPerson, TContext>, IUserSearchStore<TListUser>, IDisposable where TListUser : class, IListUser, new()
where TUser : IdentityUser where TPerson : class, IPerson, IMultitenantEntity where TContext : DbContext, IUserSearchDbContext<TUser, TPerson>
Type Parameters
TListUser
The type representing a combined user and person. |
TUser
The type representing a user. |
TPerson
The type representing a person. |
TContext
The type of the data context class used to access the store. |
Constructors
MultitenantUserSearchStore(TContext, ITenantAccessor)
Creates a new instance of MultitenantUserSearchStore<TListUser, TUser, TPerson, TContext>.
Declaration
public MultitenantUserSearchStore(TContext context, ITenantAccessor tenantAccessor)
Parameters
TContext
context
The context used to access the store. |
ITenantAccessor
tenantAccessor
The accessor used to access the identity of the current tenant. |
Methods
GetAllUsersAsync(UsersSearchQuery, CancellationToken)
Gets all users that matches the supplied query
.
Declaration
public override Task<QueryResult<TListUser>> GetAllUsersAsync(UsersSearchQuery query, CancellationToken cancellationToken = default(CancellationToken))
Parameters
UsersSearchQuery
query
The query describing filtering and sorting for the users. |
System.Threading.CancellationToken
cancellationToken
The System.Threading.CancellationToken used to propagate notifications that the operation should be canceled. |
Returns
System.Threading.Tasks.Task<QueryResult<TListUser>>
A QueryResult<T> with a collection of users matching the supplied |
Overrides
IRM.AspNetCore.Identity.EntityFrameworkCore.UserSearchStore<TListUser, TUser, TPerson, TContext>.GetAllUsersAsync(IRM.AspNetCore.Identity.UsersSearchQuery, System.Threading.CancellationToken)