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
IRaythaDbContextraythaFunctionConfiguration
IRaythaFunctionConfigurationraythaFunctionSemaphore
IRaythaFunctionSemaphoreraythaFunctionScriptEngine
IRaythaFunctionScriptEngine
Methods
Handle(Command, CancellationToken)
Handles a request
public Task<CommandResponseDto<object>> Handle(ExecuteRaythaFunction.Command request, CancellationToken cancellationToken)
Parameters
request
ExecuteRaythaFunction.CommandThe request
cancellationToken
CancellationTokenCancellation token
Returns
- Task<CommandResponseDto<object>>
Response from the request