Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface INestApplicationContext

Interface defining NestApplicationContext.

publicapi

Hierarchy

Index

Methods

close

  • close(): Promise<void>

enableShutdownHooks

get

  • get<TInput, TResult>(typeOrToken: Type<TInput> | Abstract<TInput> | string | symbol, options?: { strict: boolean }): TResult

init

  • init(): Promise<this>

registerRequestByContextId

  • registerRequestByContextId<T>(request: T, contextId: { id: number }): void

resolve

  • resolve<TInput, TResult>(typeOrToken: Type<TInput> | Abstract<TInput> | string | symbol, contextId?: { id: number }, options?: { strict: boolean }): Promise<TResult>
  • Resolves transient or request-scoped instance of either injectable or controller, otherwise, throws exception.

    Type parameters

    • TInput = any

    • TResult = TInput

    Parameters

    • typeOrToken: Type<TInput> | Abstract<TInput> | string | symbol
    • Optional contextId: { id: number }
      • id: number
    • Optional options: { strict: boolean }
      • strict: boolean

    Returns Promise<TResult>

select

useLogger

Generated using TypeDoc