Aller au contenu principal
Version: Next

Context

Hierarchy

Index

Properties

app

isAlive

isAlive: boolean

logger

logger: ILogger

requestContext

requestContext: IMidwayContainer

Custom properties.

startTime

startTime: number

Methods

getApp

  • getApp(): IMidwayBaseApplication<Context>
  • Get current related application instance.

getAttr

  • getAttr<T>(key: string): T
  • Get value from app attribute map


    Type parameters

    • T

getLogger

  • getLogger(name?: string): ILogger

setAttr

  • setAttr(key: string, value: any): any
  • Set value to app attribute map