(middleware: Function, dino: IDinoProperties)
| 65 | |
| 66 | // made public for unit test and not available on interface contract |
| 67 | resolve<T>(middleware: Function, dino: IDinoProperties): T { |
| 68 | let o = this.diContainer.resolve<T>(middleware); |
| 69 | |
| 70 | if (DataUtility.isUndefinedOrNull(dino)) { |
| 71 | return o; |
| 72 | } |
| 73 | |
| 74 | // walk-through the entire object chain and replace IUserIdentity instance References |
| 75 | return this.enableTaskContext ? |
| 76 | ObjectUtility.replaceObjectReferences(o, dino.context, IUserIdentity) : o; |
| 77 | } |
| 78 | |
| 79 | routeNotFoundMiddleware(middleware: any): void { |
| 80 | if (DinoUtility.isSyncRequestStartMiddleware(middleware)) { |
no test coverage detected