Table of Contents

Class GetRaythaFunctionById.Handler

Namespace
Raytha.Application.RaythaFunctions.Queries
Assembly
Raytha.Application.dll
public class GetRaythaFunctionById.Handler : IRequestHandler<GetRaythaFunctionById.Query, IQueryResponseDto<RaythaFunctionDto>>
Inheritance
GetRaythaFunctionById.Handler
Implements
Inherited Members

Constructors

Handler(IRaythaDbContext)

public Handler(IRaythaDbContext db)

Parameters

db IRaythaDbContext

Methods

Handle(Query, CancellationToken)

Handles a request

public Task<IQueryResponseDto<RaythaFunctionDto>> Handle(GetRaythaFunctionById.Query request, CancellationToken cancellationToken)

Parameters

request GetRaythaFunctionById.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<RaythaFunctionDto>>

Response from the request