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

Method resolve

src/modules/core/dino.container.ts:67–77  ·  view source on GitHub ↗
(middleware: Function, dino: IDinoProperties)

Source from the content-addressed store, hash-verified

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)) {

Callers 6

appStartMiddlewareMethod · 0.95
requestEndMiddlewareMethod · 0.95
setUpDinoControllerMethod · 0.95

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected