Method Create
Create(IConnection)
Creates a new SwarmingHelper instance.
public static ISwarmingHelper Create(IConnection connection)
Parameters
connection
IConnectionActive connection that can be used to send swarming requests through.
Returns
- ISwarmingHelper
Swarming Helper
Exceptions
- ArgumentNullException
No connection specified
Create(Func<DMSMessage, DMSMessage[]>)
Creates a new SwarmingHelper instance.
public static ISwarmingHelper Create(Func<DMSMessage, DMSMessage[]> handleMessageFunc)
Parameters
handleMessageFunc
Func<DMSMessage, DMSMessage[]>Callback that the helper can use to send requests to the DataMiner Agent.
Returns
- ISwarmingHelper
Swarming Helper
Exceptions
- ArgumentNullException
No callback handler specified