Table of Contents

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

db IRaythaDbContext

Methods

Handle(Query, CancellationToken)

Handles a request

public Task<IQueryResponseDto<ThemeDto>> Handle(GetThemeById.Query request, CancellationToken cancellationToken)

Parameters

request GetThemeById.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<ThemeDto>>

Response from the request