Method GetDmsAsUser
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Automation
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Automation.dll
GetDmsAsUser(Engine)
Retrieves an object implementing the IDms interface that executes actions in the context of the user running the Automation script. This is the recommended method over GetDms(Engine).
public static IDms GetDmsAsUser(this Engine engine)
Parameters
Returns
Remarks
Only Skyline.DataMiner.Net.Messages.DMSMessage requests are handled in the user context. Other flows, such as subscriptions (Monitors), are not executed in the user context.
Exceptions
- ArgumentNullException
engineis null.