Table of Contents

Class GetUserById.Handler

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

Constructors

Handler(IRaythaDbContext)

public Handler(IRaythaDbContext db)

Parameters

db IRaythaDbContext

Methods

Handle(Query, CancellationToken)

Handles a request

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

Parameters

request GetUserById.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<UserDto>>

Response from the request