Table of Contents

Class GetAdmins.Handler

Namespace
Raytha.Application.Admins.Queries
Assembly
Raytha.Application.dll
public class GetAdmins.Handler : IRequestHandler<GetAdmins.Query, IQueryResponseDto<ListResultDto<AdminDto>>>
Inheritance
GetAdmins.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<AdminDto>>> Handle(GetAdmins.Query request, CancellationToken cancellationToken)

Parameters

request GetAdmins.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<ListResultDto<AdminDto>>>

Response from the request