Home > @i2analyze/i2connect > service
service() function
The @service
decorator, which configures a method on the connector class to be an i2 Connect service.
Signature:
export declare function service(config: services.IServiceConfig): MethodDecorator;
Introduced: API version 1.0
Parameters
Parameter | Type | Description |
---|---|---|
config | services.IServiceConfig | Settings that determine the name and description of the service that users see, and some aspects of its behavior. |
Returns:
MethodDecorator
Example
@service({ name: "Find IP address" })
async findIPAddresses(...)