Table of Contents

Class GetViewById.Handler

Namespace
Raytha.Application.Views.Queries
Assembly
Raytha.Application.dll
public class GetViewById.Handler : IRequestHandler<GetViewById.Query, IQueryResponseDto<ViewDto>>
Inheritance
GetViewById.Handler
Implements
Inherited Members

Constructors

Handler(IRaythaDbContext)

public Handler(IRaythaDbContext db)

Parameters

db IRaythaDbContext

Methods

Handle(Query, CancellationToken)

Handles a request

public Task<IQueryResponseDto<ViewDto>> Handle(GetViewById.Query request, CancellationToken cancellationToken)

Parameters

request GetViewById.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<ViewDto>>

Response from the request