|
ctrlX Data Layer .NET API
4.3.0
|
![]() |
The IClient interface. More...
Public Member Functions | |
DLR_RESULT IVariant value | Browse (string address) |
Task< IClientAsyncResult > | BrowseAsync (string address) |
Browses a node asynchronously. | |
DLR_RESULT IBulkItem[] items | BulkBrowse (string[] addresses) |
Task< IClientAsyncBulkResult > | BulkBrowseAsync (string[] addresses) |
Browses a list of nodes asynchronously. | |
DLR_RESULT IBulkItem[] items | BulkCreate (string[] addresses, IVariant[] args) |
Task< IClientAsyncBulkResult > | BulkCreateAsync (string[] addresses, IVariant[] args) |
Creates a list of nodes with arguments asynchronously. | |
DLR_RESULT IBulkItem[] items | BulkRead (string[] addresses) |
DLR_RESULT IBulkItem[] items | BulkRead (string[] addresses, IVariant[] args) |
Task< IClientAsyncBulkResult > | BulkReadAsync (string[] addresses) |
Reads values from a list of nodes asynchronously. | |
Task< IClientAsyncBulkResult > | BulkReadAsync (string[] addresses, IVariant[] args) |
Reads values from a list of nodes with arguments asynchronously. | |
DLR_RESULT IBulkItem[] items | BulkReadMetadata (string[] addresses) |
Task< IClientAsyncBulkResult > | BulkReadMetadataAsync (string[] addresses) |
Reads the metadata from a list of nodes asynchronously. | |
DLR_RESULT IBulkItem[] items | BulkRemove (string[] addresses) |
Task< IClientAsyncBulkResult > | BulkRemoveAsync (string[] addresses) |
Removes a list of nodes asynchronously. | |
DLR_RESULT IBulkItem[] items | BulkWrite (string[] addresses, IVariant[] writeValues) |
Task< IClientAsyncBulkResult > | BulkWriteAsync (string[] addresses, IVariant[] writeValues) |
Writes a list of values to a list of nodes asynchronously. | |
DLR_RESULT IVariant value | Create (string address, IVariant args) |
Task< IClientAsyncResult > | CreateAsync (string address, IVariant args) |
Creates a node with arguments asynchronously. | |
DLR_RESULT ISubscription subscription | CreateSubscription (IVariant subscriptionPropertiesFlatbuffers, object userData) |
Task< ISubscriptionAsyncResult > | CreateSubscriptionAsync (IVariant subscriptionPropertiesFlatbuffers, object userData) |
Creates an subscription asynchronously. | |
DLR_RESULT | Ping () |
Pings the remote. | |
Task< IClientAsyncResult > | PingAsync () |
Pings the remote asynchronously. | |
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. | |
Task< IClientAsyncResult > | ReadAsync (string address, IVariant args) |
Reads a node value with arguments asynchronously. | |
DLR_RESULT IVariant value | ReadJson (string address, int indentStep=0) |
DLR_RESULT IVariant value | ReadJson (string address, IVariant args, int indentStep=0) |
Task< IClientAsyncResult > | ReadJsonAsync (string address, int indentStep=0) |
Reads a node value as JSON asynchronously. | |
Task< IClientAsyncResult > | ReadJsonAsync (string address, IVariant args, int indentStep=0) |
Reads a node value as JSON with arguments asynchronously. | |
DLR_RESULT IVariant value | ReadMetadata (string address) |
Task< IClientAsyncResult > | ReadMetadataAsync (string address) |
Reads the metadata of a node asynchronously. | |
DLR_RESULT[] IVariant[] value | ReadMulti (string[] addresses) |
Task< IClientAsyncResult[]> | ReadMultiAsync (string[] addresses) |
Reads values from a list of nodes asynchronously. | |
DLR_RESULT | Remove (string address) |
Removes a node. | |
Task< IClientAsyncResult > | RemoveAsync (string address) |
Removes a node asynchronously. | |
DLR_RESULT | SetTimeout (DLR_TIMEOUT_SETTING timeout, uint value) |
Sets the timeout of each request. | |
DLR_RESULT | Write (string address, IVariant writeValue) |
Writes the value to a node. | |
Task< IClientAsyncResult > | WriteAsync (string address, IVariant writeValue) |
Writes a value to a node asynchronously. | |
IVariant error | WriteJson (string address, string json) |
Task< IClientAsyncResult > | WriteJsonAsync (string address, string json) |
Writes a JSON value to a node asynchronously. | |
DLR_RESULT[] | WriteMulti (string[] addresses, IVariant[] writeValues) |
Writes a list of values to a list of nodes. | |
Task< IClientAsyncResult[]> | WriteMultiAsync (string[] addresses, IVariant[] writeValues) |
Writes a list of values to a list of nodes asynchronously. | |
Public Attributes | |
DLR_RESULT | |
Writes a JSON value to a node. | |
DLR_RESULT | result |
Reads a node value. | |
DLR_RESULT[] | result |
Reads values from a list of nodes. | |
Properties | |
IVariant | AuthToken [get] |
Gets the authentication token (JWT) as string. | |
DLR_RESULT | ConnectionStatus [get] |
Gets the connection status. | |
bool | IsConnected [get] |
Checks the connection. | |
IDatalayerSystem | System [get] |
Gets the system. | |
![]() | |
bool | IsDisposed [get] |
Checks disposed. | |
The IClient 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. |
Task< IClientAsyncBulkResult > BulkBrowseAsync | ( | string[] | addresses | ) |
Browses a list of nodes asynchronously.
addresses | Address of the nodes. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
Task< IClientAsyncBulkResult > BulkCreateAsync | ( | string[] | addresses, |
IVariant[] | args | ||
) |
Creates a list of nodes with arguments asynchronously.
addresses | Addresses of the nodes. |
args | Request arguments. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
Task< IClientAsyncBulkResult > BulkReadAsync | ( | string[] | addresses | ) |
Reads values from a list of nodes asynchronously.
addresses | Addresses of the nodes. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
Task< IClientAsyncBulkResult > BulkReadAsync | ( | string[] | addresses, |
IVariant[] | args | ||
) |
Reads values from a list of nodes with arguments asynchronously.
addresses | Addresses of the nodes. |
args | Request arguments. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
ArgumentException | Invalid arguments. |
Task< IClientAsyncBulkResult > BulkReadMetadataAsync | ( | string[] | addresses | ) |
Reads the metadata from a list of nodes asynchronously.
addresses | Addresses of the nodes. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
Task< IClientAsyncBulkResult > BulkRemoveAsync | ( | string[] | addresses | ) |
Removes a list of nodes asynchronously.
addresses | Addresses of the nodes. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
Task< IClientAsyncBulkResult > BulkWriteAsync | ( | string[] | addresses, |
IVariant[] | writeValues | ||
) |
Writes a list of values to a list of nodes asynchronously.
addresses | Addresses of the nodes. |
writeValues | Values to write. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
ArgumentException | Invalid arguments. |
Task< IClientAsyncResult > CreateAsync | ( | string | address, |
IVariant | args | ||
) |
Creates a node with arguments asynchronously.
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 subscription asynchronously.
subscriptionPropertiesFlatbuffers | Properties of the subscription as flatbuffers. |
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 with arguments asynchronously.
address | Address of the node. |
args | Request arguments. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
Task< IClientAsyncResult > ReadJsonAsync | ( | string | address, |
int | indentStep = 0 |
||
) |
Reads a node value as JSON asynchronously.
address | Address of the node. |
indentStep | Indentation length for json string. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
Task< IClientAsyncResult > ReadJsonAsync | ( | string | address, |
IVariant | args, | ||
int | indentStep = 0 |
||
) |
Reads a node value as JSON with arguments asynchronously.
address | Address of the node. |
args | Request arguments (JSON). |
indentStep | Indentation length for json string. |
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. |
Task< IClientAsyncResult[]> ReadMultiAsync | ( | string[] | addresses | ) |
Reads values from a list of nodes asynchronously.
addresses | Addresses of the nodes. |
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. |
Task< IClientAsyncResult > WriteJsonAsync | ( | string | address, |
string | json | ||
) |
Writes a JSON value to a node asynchronously.
address | Address of the node. |
json | JSON value to write. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
DLR_RESULT[] WriteMulti | ( | string[] | addresses, |
IVariant[] | writeValues | ||
) |
Writes a list of values to a list of nodes.
addresses | Addresses of the nodes. |
writeValues | Values to write. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
ArgumentException | Invalid arguments. |
Task< IClientAsyncResult[]> WriteMultiAsync | ( | string[] | addresses, |
IVariant[] | writeValues | ||
) |
Writes a list of values to a list of nodes asynchronously.
addresses | Addresses of the nodes. |
writeValues | Values to write. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
ArgumentException | Invalid arguments. |
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 309 of file IClient.cs.
DLR_RESULT result |
Reads a node value.
Creates a subscription.
Removes a list of nodes.
Creates a list of nodes with arguments.
Creates a node with arguments.
Browses a list of nodes.
Browses a node.
Writes a list of values to a list of nodes.
Reads the metadata from a list of nodes.
Reads the metadata of a node.
Reads a node value as JSON with arguments.
Reads a node value as JSON.
Reads values from a list of nodes with arguments.
Reads values from a list of nodes.
Reads a node value with arguments.
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. |
addresses | Addresses of the nodes. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
addresses | Addresses of the nodes. |
args | Request arguments. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
ArgumentException | Invalid arguments. |
address | Address of the node. |
indentStep | Indentation length for json string. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
address | Address of the node. |
args | Request arguments (JSON). |
indentStep | Indentation length for json string. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
addresses | Addresses of the nodes. |
writeValues | Values to write. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
ArgumentException | Invalid arguments. |
addresses | Address of the nodes. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
addresses | Addresses of the nodes. |
args | Request arguments. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
subscriptionPropertiesFlatbuffers | Properties of the subscription as flatbuffers. |
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 65 of file IClient.cs.
DLR_RESULT [] result |
Reads values from a list of nodes.
addresses | Addresses of the nodes. |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
Definition at line 105 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 33 of file IClient.cs.
|
get |
Gets the connection status.
ObjectDisposedException | Cannot access a disposed object. |
Definition at line 26 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.