Hi,
I can see it is possible to parse JSON file with a QAction, something I need to do to interprete some HTTP request. So, in all example I saw on the Dojo, in QAction we have to add the Json library, for instance like that:
using Newtonsoft.Json;
But if I do on my system in DIS, I got an error saying it couldn't find that library name. So, Isn't part of the standard library in C#?
We often use custom DLL's and download the version we need to use and store it in the ProtocolScripts Folder of the DMA you are using and ensure we are referencing it in the XML.
We normally add in some C# exception handling within the StartUp QAction to let us know if any of the DLLs we are expecting are not already on the DMA in the ProtocolScripts folder. This can be really useful if you have to move your elements to a new DMA or reuse the driver in another DMS. Depending on the type of driver this would either be raised into the logs or as an alarmable parameter.