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 
} 

Hierarchy

  • Service

Properties

Readonly code

code: string

Unique name of the service.

Methods

fetch

  • Execute a request.

    Parameters

    Returns Promise<FetchResponse>

status

  • Get information about the status of the service.

    Returns Promise<ServiceStatusInfo>