Table of Contents

Class ExecuteRaythaFunction.Handler

Namespace
Raytha.Application.RaythaFunctions.Commands
Assembly
Raytha.Application.dll
public class ExecuteRaythaFunction.Handler : IRequestHandler<ExecuteRaythaFunction.Command, CommandResponseDto<object>>
Inheritance
ExecuteRaythaFunction.Handler
Implements
Inherited Members

Constructors

Handler(IRaythaDbContext, IRaythaFunctionConfiguration, IRaythaFunctionSemaphore, IRaythaFunctionScriptEngine)

public Handler(IRaythaDbContext db, IRaythaFunctionConfiguration raythaFunctionConfiguration, IRaythaFunctionSemaphore raythaFunctionSemaphore, IRaythaFunctionScriptEngine raythaFunctionScriptEngine)

Parameters

db IRaythaDbContext
raythaFunctionConfiguration IRaythaFunctionConfiguration
raythaFunctionSemaphore IRaythaFunctionSemaphore
raythaFunctionScriptEngine IRaythaFunctionScriptEngine

Methods

Handle(Command, CancellationToken)

Handles a request

public Task<CommandResponseDto<object>> Handle(ExecuteRaythaFunction.Command request, CancellationToken cancellationToken)

Parameters

request ExecuteRaythaFunction.Command

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<CommandResponseDto<object>>

Response from the request