Hi,
I need to create a service from my protocol (when user clicks on a button). I found a code snippet in the documentation for this task - Creating a Service - Class Library Examples. But I'm getting "missing an assembly reference" errors.
I have these references in my QAction:
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Skyline.DataMiner.Library.Common;
using Skyline.DataMiner.Library.Protocol;
using Skyline.DataMiner.Scripting;
It appears that I need the following DLL files:
- Skyline.DataMiner.Library.Common.dll
- Skyline.DataMiner.Library.Protocol.dll
But searching my DMA file system those DLLs don't exist. Question, should my DMA have those files? If so where can I get them?
Thanks,
Trong.
Class Library code is not stored as a dll on the DMA, but should be included as part of the protocol. The required CL code can be autogenerated as a separated QAction with id 63000. This can be done with DIS.
Under DIS > Settings > Class Library, you can enable automatic generation of CL code. You can also generate the code manually under DIS > Protocol > Generate Class Library Code.