Hierarchy
- Service
Properties
Readonly code
Unique name of the service.
Methods
fetch
-
Execute a request.
Parameters
-
url: string
-
Optional options: FetchRequest
Returns Promise<FetchResponse>
-
status
-
Get information about the status of the service.
Returns Promise<ServiceStatusInfo>
Object of a portable service in a module
This object is used to execute queries to the service. Tis can be done with the Service.fetch method. Example of a query:
await Namespace.services.myService.fetch('/MyServiceMethod')
[[Service. status]] returns information about the service’s status. Example of getting a status:
const serviceStatusInfo = await Namespace.services. myService.status(); if (serviceStatusInfo.status == ServiceStatus.Ready) { // Service interaction logic }