Hello!
How can I properly initialize and consume the Data Object Model (DOM) within a protocol QAction? Since the Engine object is unavailable, what is the correct pattern to use DomHelper with SLProtocol and which DLL references are required?
Thanks in advance
Hi Maximiliano
A DomHelper object can be created in a QAction like this:
DomHelper domHelper = new DomHelper(protocol.SLNet.SendMessages, "myDomModuleID");
With protocol being the SLProtocol object.
The DomHelper class is available in the Skyline.DataMiner.Net.Apps.DataMinerObjectModel namespace. Installing the Skyline.DataMiner.Dev.Protocol Development Package allows using this namespace.
Kind regards
Thanks Michiel!