Table of Contents

Class GetUsers.Handler

Namespace
Raytha.Application.Users.Queries
Assembly
Raytha.Application.dll
public class GetUsers.Handler : IRequestHandler<GetUsers.Query, IQueryResponseDto<ListResultDto<UserDto>>>
Inheritance
GetUsers.Handler
Implements
Inherited Members

Constructors

Handler(IRaythaDbContext)

public Handler(IRaythaDbContext db)

Parameters

db IRaythaDbContext

Methods

Handle(Query, CancellationToken)

Handles a request

public Task<IQueryResponseDto<ListResultDto<UserDto>>> Handle(GetUsers.Query request, CancellationToken cancellationToken)

Parameters

request GetUsers.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<ListResultDto<UserDto>>>

Response from the request