(actionName: string)
| 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> { |
nothing calls this directly
no test coverage detected