MCPcopy Create free account
hub / github.com/ParallelTask/dinoloop / invoke

Method invoke

src/modules/core/dino.controller.ts:177–185  ·  view source on GitHub ↗
(actionName: string)

Source from the content-addressed store, hash-verified

175
176 // If controller action is synchronous - invoke this
177 invoke(actionName: string): void {
178
179 let ctx = this.controller;
180 let values: IKeyValuePair[] = this.invokeSetUp(actionName);
181
182 let result = values.length > 0
183 ? ctx[actionName].apply(ctx, values.map(val => val.value)) : ctx[actionName]();
184 this.attachResultToDino(this.controllerAction.actionAttributes.sendsResponse, result);
185 }
186
187 // if controller action is async - invoke this
188 async invokeAsync(actionName: string): Promise<void> {

Callers

nothing calls this directly

Calls 2

invokeSetUpMethod · 0.95
attachResultToDinoMethod · 0.95

Tested by

no test coverage detected