Table of Contents

Class GetAdminById.Handler

Namespace
Raytha.Application.Admins.Queries
Assembly
Raytha.Application.dll
public class GetAdminById.Handler : IRequestHandler<GetAdminById.Query, IQueryResponseDto<AdminDto>>
Inheritance
GetAdminById.Handler
Implements
Inherited Members

Constructors

Handler(IRaythaDbContext)

public Handler(IRaythaDbContext db)

Parameters

db IRaythaDbContext

Methods

Handle(Query, CancellationToken)

Handles a request

public Task<IQueryResponseDto<AdminDto>> Handle(GetAdminById.Query request, CancellationToken cancellationToken)

Parameters

request GetAdminById.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<AdminDto>>

Response from the request