|
ctrlX Data Layer API for .NET 5
2.1.0
|
![]() |
The subscription interface. More...
Public Member Functions | |
delegate void | DataChangedEventHandler (ISubscription subscription, IDataChangedEventArgs args) |
The DataChanged event delegate of the Subscription More... | |
DLR_RESULT | Subscribe (string address) |
Subscribes to a node More... | |
Task< ISubscriptionAsyncResult > | SubscribeAsync (string address) |
Subscribes to a node asynchronously More... | |
DLR_RESULT | SubscribeMulti (string[] addresses) |
Subscribes to a list of nodes More... | |
Task< ISubscriptionAsyncResult > | SubscribeMultiAsync (string[] addresses) |
Subscribes to a list of nodes asynchronously More... | |
DLR_RESULT | Unsubscribe (string address) |
Unsubscribes the node More... | |
DLR_RESULT | UnsubscribeAll () |
Unsubscribes all subscribed nodes More... | |
Task< ISubscriptionAsyncResult > | UnsubscribeAllAsync () |
Unsubscribes all subscribed nodes asynchronously. More... | |
Task< ISubscriptionAsyncResult > | UnsubscribeAsync (string address) |
Unsubscribes to a node asynchronously. More... | |
DLR_RESULT | UnsubscribeMulti (string[] addresses) |
Unsubscribes to a list of nodes More... | |
Task< ISubscriptionAsyncResult > | UnsubscribeMultiAsync (string[] addresses) |
Unsubscribes a list of nodes asynchronously. More... | |
Properties | |
IClient | Client [get] |
Gets the client. More... | |
string | Id [get] |
Gets the subscription id. More... | |
object | UserData [get] |
Gets the user data. More... | |
![]() | |
bool | IsDisposed [get] |
Checks disposed More... | |
Events | |
DataChangedEventHandler | DataChanged |
The DataChanged event of the Subscription More... | |
The subscription interface.
Definition at line 9 of file ISubscription.cs.
delegate void DataChangedEventHandler | ( | ISubscription | subscription, |
IDataChangedEventArgs | args | ||
) |
The DataChanged event delegate of the Subscription
subscription | The source subscription, which raises the event. |
args | The data changed event arguments |
DLR_RESULT Subscribe | ( | string | address | ) |
Subscribes to a node
address | Address of the subscription |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
Example
Task<ISubscriptionAsyncResult> SubscribeAsync | ( | string | address | ) |
Subscribes to a node asynchronously
address | Address of the subscription |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
DLR_RESULT SubscribeMulti | ( | string[] | addresses | ) |
Subscribes to a list of nodes
addresses | An array of the addresses |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
Task<ISubscriptionAsyncResult> SubscribeMultiAsync | ( | string[] | addresses | ) |
Subscribes to a list of nodes asynchronously
addresses | An array of the addresses |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
DLR_RESULT Unsubscribe | ( | string | address | ) |
Unsubscribes the node
address | Address of the subscription |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
DLR_RESULT UnsubscribeAll | ( | ) |
Unsubscribes all subscribed nodes
ObjectDisposedException | Cannot access a disposed object |
Task<ISubscriptionAsyncResult> UnsubscribeAllAsync | ( | ) |
Unsubscribes all subscribed nodes asynchronously.
ObjectDisposedException | Cannot access a disposed object |
Task<ISubscriptionAsyncResult> UnsubscribeAsync | ( | string | address | ) |
Unsubscribes to a node asynchronously.
address | Address of the subscription |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
DLR_RESULT UnsubscribeMulti | ( | string[] | addresses | ) |
Unsubscribes to a list of nodes
addresses | An array of the addresses |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
Task<ISubscriptionAsyncResult> UnsubscribeMultiAsync | ( | string[] | addresses | ) |
Unsubscribes a list of nodes asynchronously.
addresses | An array of the addresses |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
|
get |
Gets the client.
Definition at line 14 of file ISubscription.cs.
|
get |
Gets the subscription id.
Definition at line 19 of file ISubscription.cs.
|
get |
Gets the user data.
Definition at line 24 of file ISubscription.cs.
DataChangedEventHandler DataChanged |
The DataChanged event of the Subscription
Definition at line 36 of file ISubscription.cs.