Singleton - SmartPlant Foundation - IM Update 44 - Customization & Programming - Hexagon

SmartPlant Foundation Customization

Language
English
Product
SmartPlant Foundation
Search by Category
Customization & Programming
SmartPlant Foundation / SDx Version
10

The following example shows the ExposedSingleton:

This server code is represented in SmartPlant Foundation using the following model XML:

This is exposed using the following GET:

http://[Local Host]/spfserver/api/v1/ExposedSingleton

For this singleton example to work, the return type must be a class object with a defined public ID string property. The displayed example will not work with a primitive return type.