ModelManager: How to subscribe to a model

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Moderator: uasdknet

Post Reply
w.mena@infors-ht.com
Jr. Member
Jr. Member
Posts: 2
Joined: 22 Nov 2021, 11:14

ModelManager: How to subscribe to a model

Post by w.mena@infors-ht.com »

Dear all,
I am currently able to read a model.
Now I want to subscribe to this model, meaning that I would like to be informed if any of the model properties changes,
including also child properties.
Is it possible? If yes, where can I find a code example?
Unfortunately the documentation concerning this point is either very poor or I was looking at the wrong place.
Thx a lot for your help.
BR Wolfgang

w.mena@infors-ht.com
Jr. Member
Jr. Member
Posts: 2
Joined: 22 Nov 2021, 11:14

Re: ModelManager: How to subscribe to a model

Post by w.mena@infors-ht.com »

I have found the answer myself.
Model provides the possibility to subscribe to it, using session.Model.Subscribe(...) method.
Thx for the support anyway for not responding due to my silly question because of the poor documentation.
BR Wolfgang

User avatar
Support Team
Hero Member
Hero Member
Posts: 3056
Joined: 18 Mar 2011, 15:09

Re: ModelManager: How to subscribe to a model

Post by Support Team »

Hello Wolfgang,

Sorry for the late response.
In general we think that there are no silly questions. In the documentation sometime some special topics are hard to find.
However you can find the documentation for ModelManager.Subscribe here: https://documentation.unified-automation.com/uasdknet/3.2.1/html/classUnifiedAutomation_1_1UaClient_1_1ModelManager.html#a7b82dcc2b8792beae48b326cddc34491
Best regards
Unified Automation Support Team

Post Reply