ctrlX Data Layer API for .NET 5
2.1.0
|
The client interface. More...
Public Member Functions | |
DLR_RESULT IVariant value | Browse (string address) |
Task< IClientAsyncResult > | BrowseAsync (string address) |
Browses a node asynchronously. More... | |
DLR_RESULT | Create (string address, IVariant args) |
Creates a node with arguments. More... | |
Task< IClientAsyncResult > | CreateAsync (string address, IVariant args) |
Creates a node asynchronously with arguments. More... | |
DLR_RESULT ISubscription subscription | CreateSubscription (IVariant subscriptionPropertiesFlatbuffers, object userData) |
Task< ISubscriptionAsyncResult > | CreateSubscriptionAsync (IVariant subscriptionPropertiesFlatbuffers, object userData) |
Creates an asynchronously subscription. More... | |
DLR_RESULT | Ping () |
Pings the remote. More... | |
Task< IClientAsyncResult > | PingAsync () |
Pings the remote asynchronously. More... | |
DLR_RESULT IVariant value | Read (string address) |
DLR_RESULT IVariant value | Read (string address, IVariant args) |
Task< IClientAsyncResult > | ReadAsync (string address) |
Reads a node value asynchronously. More... | |
Task< IClientAsyncResult > | ReadAsync (string address, IVariant args) |
Reads a node value asynchronously with arguments. More... | |
DLR_RESULT IVariant value | ReadJson (string address, int indentStep=0) |
DLR_RESULT IVariant value | ReadMetadata (string address) |
Task< IClientAsyncResult > | ReadMetadataAsync (string address) |
Reads the metadata of a node asynchronously. More... | |
DLR_RESULT | Remove (string address) |
Removes a node. More... | |
Task< IClientAsyncResult > | RemoveAsync (string address) |
Removes a node asynchronously. More... | |
DLR_RESULT | SetTimeout (DLR_TIMEOUT_SETTING timeout, uint value) |
Sets the timeout of each request. More... | |
DLR_RESULT | Write (string address, IVariant writeValue) |
Writes the value to a node. More... | |
Task< IClientAsyncResult > | WriteAsync (string address, IVariant writeValue) |
Writes a value to a node asynchronously. More... | |
IVariant error | WriteJson (string address, string json) |
Public Attributes | |
DLR_RESULT | |
Writes a JSON value to a node. More... | |
DLR_RESULT | result |
Browses a node. More... | |
Properties | |
IVariant | AuthToken [get] |
Gets the authentication token (JWT) as string. More... | |
bool | IsConnected [get] |
Checks the connection. More... | |
IDatalayerSystem | System [get] |
Gets the system. More... | |
Properties inherited from INativeDisposable | |
bool | IsDisposed [get] |
Checks disposed More... | |
The client interface.
Definition at line 9 of file IClient.cs.
Task<IClientAsyncResult> BrowseAsync | ( | string | address | ) |
Browses a node asynchronously.
address | Address of the node |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
DLR_RESULT Create | ( | string | address, |
IVariant | args | ||
) |
Creates a node with arguments.
address | Address of the node |
args | Request arguments |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
Task<IClientAsyncResult> CreateAsync | ( | string | address, |
IVariant | args | ||
) |
Creates a node asynchronously with arguments.
address | Address of the node |
args | Request arguments |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
Example
Task<ISubscriptionAsyncResult> CreateSubscriptionAsync | ( | IVariant | subscriptionPropertiesFlatbuffers, |
object | userData | ||
) |
Creates an asynchronously subscription.
subscriptionPropertiesFlatbuffers | Properties of the flatbuffers subscription |
userData | Optional user data can be provided, which is available in the subscription data changed event context |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
Example
DLR_RESULT Ping | ( | ) |
Pings the remote.
ObjectDisposedException | Cannot access a disposed object |
Task<IClientAsyncResult> PingAsync | ( | ) |
Pings the remote asynchronously.
ObjectDisposedException | Cannot access a disposed object |
Task<IClientAsyncResult> ReadAsync | ( | string | address | ) |
Reads a node value asynchronously.
address | Address of the node |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
Task<IClientAsyncResult> ReadAsync | ( | string | address, |
IVariant | args | ||
) |
Reads a node value asynchronously with arguments.
address | Address of the node |
args | Request arguments |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
Task<IClientAsyncResult> ReadMetadataAsync | ( | string | address | ) |
Reads the metadata of a node asynchronously.
address | Address of the node |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
DLR_RESULT Remove | ( | string | address | ) |
Removes a node.
address | Address of the node |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
Task<IClientAsyncResult> RemoveAsync | ( | string | address | ) |
Removes a node asynchronously.
address | Address of the node |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
DLR_RESULT SetTimeout | ( | DLR_TIMEOUT_SETTING | timeout, |
uint | value | ||
) |
Sets the timeout of each request.
timeout | Timeout to set |
value | Value to set |
ObjectDisposedException | Cannot access a disposed object |
DLR_RESULT Write | ( | string | address, |
IVariant | writeValue | ||
) |
Writes the value to a node.
address | Address of the node |
writeValue | Value to write |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
Task<IClientAsyncResult> WriteAsync | ( | string | address, |
IVariant | writeValue | ||
) |
Writes a value to a node asynchronously.
address | Address of the node |
writeValue | Value to set |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
Writes a JSON value to a node.
address | Address of the node |
json | JSON value to write |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
Definition at line 72 of file IClient.cs.
DLR_RESULT result |
Browses a node.
Creates a subscription.
Reads metadata of a node.
Reads a node value as JSON.
Reads a node value with arguments.
Reads a node value.
address | Address of the node |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
address | Address of the node |
args | Request arguments |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
address | Address of the node |
indentStep | Indentation length for json string |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
subscriptionPropertiesFlatbuffers | Properties of the flatbuffers subscription |
userData | Optional user data can be provided, which is available in the subscription data changed event context |
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
Definition at line 52 of file IClient.cs.
|
get |
Gets the authentication token (JWT) as string.
ObjectDisposedException | Cannot access a disposed object |
InvalidOperationException | Operation not allowed |
Definition at line 27 of file IClient.cs.
|
get |
Checks the connection.
ObjectDisposedException | Cannot access a disposed object |
Definition at line 20 of file IClient.cs.
|
get |
Gets the system.
Definition at line 14 of file IClient.cs.