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