Owneat Technical Guide main Help

Class GetAllUsersQueryHandler

Namespace: Identity.Application.Requests.Handlers.User
Assembly: Identity.Application.dll

Handler that returns all the users in the database.

public sealed class GetAllUsersQueryHandler : IRequestHandler<GetAllUsersQuery, Result<IEnumerable<UserResponse>>>

Inheritance

object ← GetAllUsersQueryHandler

Implements

IRequestHandler<GetAllUsersQuery, Result<IEnumerable<UserResponse\>\>\>

Inherited Members

object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)

Constructors

GetAllUsersQueryHandler\(IUserRepository\)

public GetAllUsersQueryHandler(IUserRepository repository)

Parameters

repository IUserRepository

Methods

Handle\(GetAllUsersQuery, CancellationToken\)

Handles a request

public Task<Result<IEnumerable<UserResponse>>> Handle(GetAllUsersQuery request, CancellationToken cancellationToken)

Parameters

request GetAllUsersQuery

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task <Result< IEnumerable < UserResponse \>\>\>

Response from the request

Last modified: 21 May 2024