Sample Service.cs File

The following figure shows a sample Service.cs file, the file that hosts all exposed services.

Sample Service.cs File

Init() function: The first function where the system goes up. Project related items should be initialized here. The proper attributes should be set to get the services exposed for external usage. For details about exposed operations, refer to Exposed Operations.

The Init method of a service can accept a sessionId. This sessionId is then used as part of the Service Base URL. For more information about the structure of the Service Base URL, click here.

this.WindowOpened +=: This is the way to register for getting start events of the applications. This registration can be done in anywhere in the project. For details, refer to WindowOpened Event.