Class GetThemes.Handler
- Namespace
- Raytha.Application.Themes.Queries
- Assembly
- Raytha.Application.dll
public class GetThemes.Handler : IRequestHandler<GetThemes.Query, IQueryResponseDto<ListResultDto<ThemeDto>>>
- Inheritance
-
GetThemes.Handler
- Implements
- Inherited Members
Constructors
Handler(IRaythaDbContext)
public Handler(IRaythaDbContext db)
Parameters
Methods
Handle(Query, CancellationToken)
Handles a request
public Task<IQueryResponseDto<ListResultDto<ThemeDto>>> Handle(GetThemes.Query request, CancellationToken cancellationToken)
Parameters
request
GetThemes.QueryThe request
cancellationToken
CancellationTokenCancellation token
Returns
- Task<IQueryResponseDto<ListResultDto<ThemeDto>>>
Response from the request