Use the API to access a service instance.
This example shows how to access an OBS (organizational base structure) service.
// Returns null if the service is not defined in the configuration file. IObsService obsService = engine.GetService<IObsService>(); // Throws an exception if the service is not defined in the configuration file. IObsService obsService = engine.GetServiceWithCheck<IObsService>();
Add the following section in the <services>
section of the configuration file.
<add type="PNMsoft.Sequence.Runtime.ObsService, PNMsoft.Sequence.Runtime, Version=#.#.#.#, Culture=neutral, PublicKeyToken=YourPublicKeyToken"></add>