跳到主要内容
版本:Next

Framework

Hierarchy

Index

Constructors

constructor

Properties

publicapp

readonlyapplicationContext

applicationContext: IMidwayContainer

configService

configService: MidwayConfigService

configurationOptions

publicconsumerHandlerList

consumerHandlerList: any[] = []

environmentService

environmentService: MidwayEnvironmentService

informationService

informationService: MidwayInformationService

loggerService

loggerService: MidwayLoggerService

middlewareService

middlewareService: MidwayMiddlewareService<IMidwayRabbitMQContext, unknown, unknown>

mockService

mockService: MidwayMockService

Methods

applicationInitialize

  • applicationInitialize(options: any): Promise<void>

applyMiddleware

  • Type parameters

    • R
    • N

configure

  • configure(): any

createLogger

  • createLogger(name: string, option?: MidwayLoggerOptions): any

getAppDir

  • getAppDir(): string

getApplication

getApplicationContext

  • getApplicationContext(): IMidwayContainer

getBaseDir

  • getBaseDir(): string

getConfiguration

  • getConfiguration(key?: string): any

getCoreLogger

  • getCoreLogger(): ILogger

getCurrentEnvironment

  • getCurrentEnvironment(): string

publicgetFrameworkName

  • getFrameworkName(): string

publicgetFrameworkType

getLogger

  • getLogger(name?: string): any

getMiddleware

getNamespace

  • getNamespace(): string

getProjectName

  • getProjectName(): string

init

initialize

  • initialize(options?: IMidwayBootstrapOptions): Promise<void>

isEnable

  • isEnable(): boolean

publicrun

  • run(): Promise<void>

runGuard

  • runGuard(ctx: IMidwayRabbitMQContext, supplierClz: new (...args: any[]) => any, methodName: string): Promise<boolean>

setNamespace

  • setNamespace(namespace: string): void

stop

  • stop(): Promise<void>

useFilter

useGuard

useMiddleware