An "environmental service" is an object available via Environment.get.

Any object may be an environmental service. This methods in this interface are optional.

interface Service {
    [asyncDispose]?: (() => Promise<any>);
    [presentation]?: Presentation;
    [value]?: unknown;
    construction?: Promise<any>;
}

Properties

[asyncDispose]?: (() => Promise<any>)

Asynchronous destruction. Invoked by the environment when it is destroyed.

[presentation]?: Presentation

Standard diagnostic presentation.

[value]?: unknown

Standard diagnostic value.

construction?: Promise<any>

Asynchronous construction, respected by Environment.load.