I think the question is related to the creation of a new instance - in context of the SteamSensor Example - of a new SteamThing in the already running application.
https://support.ptc.com/help/thingworx/edge_sdk_dotnet/en/#page/dotnet_sdk/c_dotnet_sdk_reference_virtualthing_class.html#wwID0E3BIM
SteamSensorClient client = createClient(host, appKey);
/* (done in createClient call)
// Create two Virtual Things
SteamThing sensor1 = new SteamThing("SteamSensor1", "1st Floor Steam Sensor", null, client);
SteamThing sensor2 = new SteamThing("SteamSensor2", "2nd Floor Steam Sensor", "SN0002", client);
// Bind the Virtual Things
client.bindThing(sensor1);
client.bindThing(sensor2);
*/
// Wait for the SteamSensorClient to connect, then process its associated things.
// As long as the client has not been shutdown, continue
while (!client.isShutdown())
{
// Only process the Virtual Things if the client is connected
if (client.isConnected())
{
ThreadPool.QueueUserWorkItem(client.runClient);
}
// Question: Can we here also create new SteamThings and bind it to the client?
// Suspend processing at the scan rate interval
Thread.Sleep(scanRate);
}
I did not yet do it like this. I cannot answer this question.