Method AddSubscriptions
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
AddSubscriptions(NewMessageEventHandler, string, string, SubscriptionFilter[], TimeSpan)
Add an SLNet Subscription.
public void AddSubscriptions(NewMessageEventHandler handler, string setId, string internalHandleIdentifier, SubscriptionFilter[] subscriptions, TimeSpan subscribeTimeout)
Parameters
handlerNewMessageEventHandlerThe handler containing the action to be performed when the event triggers.
setIdstringA unique identifier for the set of handlers. Usually dmaid/elementId or a source identifier.
internalHandleIdentifierstringInternal identifier for this specific handler.
subscriptionsSubscriptionFilter[]All the subscription filters that define when to trigger an event.
subscribeTimeoutTimeSpanThe timeout for creating the subscription.
Exceptions
- ArgumentNullException
handler,setIdorsubscriptionsis null.- InvalidOperationException
Could not add SLNet subscriptions within the specified timeout.
AddSubscriptions(NewMessageEventHandler, string, string, SubscriptionFilter[])
Add an SLNet Subscription.
public void AddSubscriptions(NewMessageEventHandler handler, string setId, string internalHandleIdentifier, SubscriptionFilter[] subscriptions)
Parameters
handlerNewMessageEventHandlerThe handler containing the action to be performed when the event triggers.
setIdstringA unique identifier for the set of handlers. Usually dmaid/elementId or a source identifier.
internalHandleIdentifierstringInternal identifier for this specific handler.
subscriptionsSubscriptionFilter[]All the subscription filters that define when to trigger an event.
Exceptions
- ArgumentNullException
handler,setIdorsubscriptionsis null.- InvalidOperationException
Could not add SLNet subscriptions within 10 minutes.