ServiceProgram class | QSYS API Reference Guide
Defines the core behavior of a service program and provides a base for migrated derived classes.
Namespace: ASNA.QSys.Runtime.JobSupport Assembly: ASNA.QSys.Runtime.dll
Inheritance: Object –> Module –> CommonProgram
Constructors
Name | Description |
---|---|
ServiceProgram(CommonProgram) | Called from constructors in derived classes to initialize the service program class. |
ServiceProgram(CommonProgram)
Called from constructors in derived classes to initialize the service program class.
ServiceProgram(CommonProgram)
Parameters
Type | Parameter name | Description |
---|---|---|
CommonProgram | containerProgram | If the service program is used a module, this parameter is a reference to the program using it. Defaults to null. |
Methods
Signature | Description |
---|---|
GetInstance<T>(ICaller) | Gets an instance of a service program. The instance can be an existing one if it is found in the Job otherwise a new one is created. |
T GetInstance<T>(ICaller caller)
Gets an instance of a service program. The instance can be an existing one if it is found in the Job otherwise a new one is created.
T GetInstance<T>(ICaller caller)
Parameters
Type | Parameter name | Description |
---|---|---|
ICaller | caller | The job or program seeking the service program instance. |
Returns
Type | Description |
---|---|
T | The desired service program object. |