跳到主要内容
版本:Next

Context

Hierarchy

  • IMidwayContext
    • Context

Index

Properties

from

from: new (...args: any[]) => IProcessor

job

job: Job<any>

jobId

jobId: JobId

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