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