Interface: ICapabilityBasedService
Makaio Framework / contracts / ICapabilityBasedService
Interface: ICapabilityBasedService
Section titled “Interface: ICapabilityBasedService”Defined in: ../../../packages/contracts/src/capability/types.ts:31
Interface for capability-based services that can be auto-wired by the runtime.
Services implementing this interface can be registered declaratively and the runtime will handle initialization and shutdown automatically.
Properties
Section titled “Properties”capabilityId
Section titled “capabilityId”
readonlycapabilityId:string
Defined in: ../../../packages/contracts/src/capability/types.ts:33
The capability ID this service handles
Methods
Section titled “Methods”destroy()
Section titled “destroy()”destroy():
void|Promise<void>
Defined in: ../../../packages/contracts/src/capability/types.ts:37
Destroy the service and cleanup handlers. Async teardown is allowed.
Returns
Section titled “Returns”void | Promise<void>
init()
Section titled “init()”init():
Promise<void>
Defined in: ../../../packages/contracts/src/capability/types.ts:35
Initialize the service and register bus handlers
Returns
Section titled “Returns”Promise<void>