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

Method resolve

src/modules/router/dino.router.ts:45–50  ·  view source on GitHub ↗
(middleware: Function, dino: IDinoProperties)

Source from the content-addressed store, hash-verified

43
44 // made public for unit test and not available on interface contract
45 resolve<T>(middleware: Function, dino: IDinoProperties): T {
46 let o = this.diContainer.resolve<T>(middleware);
47
48 return this.enableTaskContext ?
49 ObjectUtility.replaceObjectReferences(o, dino.context, IUserIdentity) : o;
50 }
51
52 // made public for unit test and not available on interface contract
53 registerMiddleware(middleware: IMiddlewareProvider): void {

Callers 5

registerMiddlewareMethod · 0.95
registerResultFilterMethod · 0.95

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected