@istock/iswork / Exports / ApplicationContext
Class: ApplicationContext
iswork的上下文对象
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new ApplicationContext(app
, message
, options?
): ApplicationContext
Parameters
Name | Type |
---|---|
app | Application |
message | TCmdpMessage |
options | TApplicationContextOptions |
Returns
Defined in
src/packages/iswork/src/application/context.ts:22
Properties
#app
• Private
Readonly
#app: Application
Defined in
src/packages/iswork/src/application/context.ts:9
#options
• Private
Readonly
#options: TApplicationContextOptions
Defined in
src/packages/iswork/src/application/context.ts:10
cmdp
• cmdp: Cmdp
Defined in
src/packages/iswork/src/application/context.ts:11
message
• message: TCmdpMessage
Defined in
src/packages/iswork/src/application/context.ts:12
Accessors
app
• get
app(): Application
Returns
Defined in
src/packages/iswork/src/application/context.ts:18
options
• get
options(): TApplicationContextOptions
Returns
Defined in
src/packages/iswork/src/application/context.ts:14
Methods
create
▸ create(app
, message
, options?
): ApplicationContext
Parameters
Name | Type |
---|---|
app | Application |
message | TCmdpMessage |
options | TApplicationContextOptions |
Returns
Defined in
src/packages/iswork/src/application/context.ts:31