i2 Connect SDK
Search results for

    Show/hide table of contents

    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(...)
    
    In this article
    Back to top © N. Harris Computer Corporation (2022)