AsyncContext
Represents the context of an asynchronous operation.
class AsyncContext {
static isAttached(target: object): boolean
static merge(from: object, to: object)
static of(target: object): AsyncContext | undefined
id: ContextIdFactory.create()
attachTo(target: object)
}
Static methods
isAttached() |
---|
Checks if target is already attached to any async context. |
merge() |
---|
Merges the context of an asynchronous operation from a given command, query, or event to another object. |
of() | ||||||
---|---|---|---|---|---|---|
Gets the context of an asynchronous operation from a given object. |
||||||
Parameters
Returns
|
Properties
Property | Description |
---|---|
id: ContextIdFactory.create()
|
Read-only. |
Methods
attachTo() |
---|
Attaches the context to an object. |