AIDK API Reference / aidk-nestjs / EngineContextGuard
Class: EngineContextGuard ​
Defined in: packages/nestjs/src/guards/engine-context.guard.ts:9
Guard that ensures execution context is available. Use this if you need to verify context before handler execution.
Implements ​
CanActivate
Constructors ​
Constructor ​
ts
new EngineContextGuard(): EngineContextGuard;Returns ​
EngineContextGuard
Methods ​
canActivate() ​
ts
canActivate(_context: ExecutionContext): boolean;Defined in: packages/nestjs/src/guards/engine-context.guard.ts:10
Parameters ​
| Parameter | Type |
|---|---|
_context | ExecutionContext |
Returns ​
boolean
Value indicating whether or not the current request is allowed to proceed.
Implementation of ​
ts
CanActivate.canActivate