2using System.Threading.Tasks;
10 public static class Subscription
12 #region Public Subscription Consts
17 public static readonly uint DefaultKeepaliveIntervalMillis = 60000;
22 public static readonly uint DefaultPublishIntervalMillis = 1000;
27 public static readonly uint DefaultErrorIntervalMillis = 10000;
32 public static readonly ulong DefaultSamplingIntervalMicros = 1000000;
42 public delegate
void DataChangedEventHandler(ISubscription subscription, IDataChangedEventArgs args);
52 #region Public Subscription Consts
The IDataChangedEventArgs interface.
The INativeDisposable interface.
The ISubscription interface.
string Id
Gets the subscription id.
IClient Client
Gets the client.
static readonly uint DefaultKeepaliveIntervalMillis
The default keep alive interval in milli seconds.
Task< ISubscriptionAsyncResult > UnsubscribeAsync(string address)
Unsubscribes to a node asynchronously.
delegate void DataChangedEventHandler(ISubscription subscription, IDataChangedEventArgs args)
The DataChanged event delegate.
Task< ISubscriptionAsyncResult > SubscribeMultiAsync(string[] addresses)
Subscribes to a list of nodes asynchronously.
static readonly ulong DefaultSamplingIntervalMicros
The default sampling interval in micro seconds.
DLR_RESULT Subscribe(string address)
Subscribes to a node.
static readonly uint DefaultErrorIntervalMillis
The default error interval in milli seconds.
DataChangedEventHandler DataChanged
Gets the DataChanged event.
DLR_RESULT SubscribeMulti(string[] addresses)
Subscribes to a list of nodes.
DLR_RESULT UnsubscribeMulti(string[] addresses)
Unsubscribes to a list of nodes.
DLR_RESULT Unsubscribe(string address)
Unsubscribes the node.
Task< ISubscriptionAsyncResult > UnsubscribeMultiAsync(string[] addresses)
Unsubscribes a list of nodes asynchronously.
Task< ISubscriptionAsyncResult > SubscribeAsync(string address)
Subscribes to a node asynchronously.
DLR_RESULT UnsubscribeAll()
Unsubscribes all subscribed nodes.
static readonly uint DefaultPublishIntervalMillis
The default publish interval in milli seconds.
Task< ISubscriptionAsyncResult > UnsubscribeAllAsync()
Unsubscribes all subscribed nodes asynchronously.
object UserData
Gets the user data.