Table of Contents

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

handler NewMessageEventHandler

The handler containing the action to be performed when the event triggers.

setId string

A unique identifier for the set of handlers. Usually dmaid/elementId or a source identifier.

internalHandleIdentifier string

Internal identifier for this specific handler.

subscriptions SubscriptionFilter[]

All the subscription filters that define when to trigger an event.

subscribeTimeout TimeSpan

The timeout for creating the subscription.

Exceptions

ArgumentNullException

handler, setId or subscriptions is 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

handler NewMessageEventHandler

The handler containing the action to be performed when the event triggers.

setId string

A unique identifier for the set of handlers. Usually dmaid/elementId or a source identifier.

internalHandleIdentifier string

Internal identifier for this specific handler.

subscriptions SubscriptionFilter[]

All the subscription filters that define when to trigger an event.

Exceptions

ArgumentNullException

handler, setId or subscriptions is null.

InvalidOperationException

Could not add SLNet subscriptions within 10 minutes.