( constructor: Function, ctx: Context, session?: ResolutionSession, )
| 263 | * @param session - Optional session for binding and dependency resolution |
| 264 | */ |
| 265 | export function resolveInjectedProperties( |
| 266 | constructor: Function, |
| 267 | ctx: Context, |
| 268 | session?: ResolutionSession, |
| 269 | ): ValueOrPromise<MapObject<BoundValue>> { |
| 270 | /* istanbul ignore if */ |
| 271 | if (debug.enabled) { |
| 272 | debug('Resolving injected properties for %s', getTargetName(constructor)); |
| 273 | } |
| 274 | const injectedProperties = describeInjectedProperties(constructor.prototype); |
| 275 | |
| 276 | return resolveMap(injectedProperties, injection => |
| 277 | resolve( |
| 278 | ctx, |
| 279 | injection, |
| 280 | // Clone the session so that multiple properties can be resolved in parallel |
| 281 | ResolutionSession.fork(session), |
| 282 | ), |
| 283 | ); |
| 284 | } |
no test coverage detected