Namespace Skyline.DataMiner.Net.Swarming.Helper.Interfaces
Interfaces
- ISwarmingHelper
Helper class for Swarming action in scripts. Create an instance by calling one of the static Create(IConnection) or Create(Func<DMSMessage, DMSMessage[]>) methods. Example usage:
First create a helper. This can be stored somewhere and reused between requests.
var helper = SwarmingHelper.Create(_connection);
Then do the actual swarming actions:
var results = helper .SwarmElement(elementId) .ToAgent(targetAgentId);
Note: The ToAgent call does the actual swarming request.