|
|
ctrlX Data Layer .NET API
4.3.0
|
|
Provides the implementation for IDatalayerSystem. More...
Public Member Functions | |
| DatalayerSystem (string ipcPath="") | |
| Initializes a new instance of the DatalayerSystem class. | |
| void | Dispose () |
| Dispose the instance. | |
| void | Start (bool startBroker=false) |
| Starts the DatalayerSystem. | |
| void | Stop () |
| Stops the DatalayerSystem. | |
| void | Start (bool startBroker) |
| Starts the DatalayerSystem. | |
| void | Stop () |
| Stops the DatalayerSystem. | |
Static Public Attributes | |
| static readonly int | DefaultClientPort = 2069 |
| Gets the default Client port. | |
| static readonly int | DefaultProviderPort = 2070 |
| Gets the default Provider port. | |
| static readonly string | ProtocolSchemeIpc = "ipc://" |
| Gets the protocol scheme for IPC communication. Recommended to connect to a DatalayerSystem running on localhost. | |
| static readonly string | ProtocolSchemeTcp = "tcp://" |
| Gets the protocol scheme for TCP communication. Recommended to connect to a DatalayerSystem not running on localhost. | |
Protected Member Functions | |
| virtual void | Dispose (bool disposing) |
| Disposes the instance. | |
Properties | |||||
| string | BfbsPath [set] | ||||
| Sets the binary Flatbuffer path, which contains *.bfbs files. | |||||
| IConverter | Converter [get] | ||||
| Gets the Converter for Variant to JSON conversions. | |||||
| IFactory | Factory [get] | ||||
| Gets the Factory to create Clients and Providers. | |||||
| string | IpcPath [get] | ||||
| Gets the path for interprocess communication. | |||||
| bool | IsDisposed [get] | ||||
| Gets a value that indicates whether the instance is already disposed and useless. | |||||
| bool | IsStarted [get] | ||||
| Gets a value that indicates whether the DatalayerSystem is started. | |||||
Properties inherited from IDatalayerSystem | |||||
| string | BfbsPath [set] | ||||
| Sets the binary Flatbuffer path, which contains *.bfbs files. | |||||
| IConverter | Converter [get] | ||||
| Gets the Converter for Variant to JSON conversions. | |||||
| IFactory | Factory [get] | ||||
Gets the Factory to create Clients and Providers.
| |||||
| string | IpcPath [get] | ||||
| Gets the interprocess communication path. | |||||
| bool | IsStarted [get] | ||||
| Checks if the DatalayerSystem is started. | |||||
Properties inherited from INativeDisposable | |||||
| bool | IsDisposed [get] | ||||
| Checks disposed. | |||||
Provides the implementation for IDatalayerSystem.
Definition at line 10 of file DatalayerSystem.cs.
|
inline |
Initializes a new instance of the DatalayerSystem class.
| ipcPath | Path for interprocess communication. Leave empty for automatic detection. |
| ArgumentNullException | Argument cannot be null. |
Definition at line 30 of file DatalayerSystem.cs.
|
inline |
Dispose the instance.
Definition at line 95 of file DatalayerSystem.cs.
References DatalayerSystem.Dispose().
Referenced by DatalayerSystem.Dispose().
|
inlineprotectedvirtual |
Disposes the instance.
| disposing | False if called by Finalizer, else true. |
Definition at line 67 of file DatalayerSystem.cs.
|
inline |
Starts the DatalayerSystem.
| startBroker | Use true to start a broker. If you are a user of the ctrlX Data Layer, set to false. |
| ObjectDisposedException | Cannot access a disposed object. |
Example
Implements IDatalayerSystem.
Definition at line 267 of file DatalayerSystem.cs.
References DatalayerSystem.IsDisposed.
|
inline |
Stops the DatalayerSystem.
| ObjectDisposedException | Cannot access a disposed object. |
Implements IDatalayerSystem.
Definition at line 285 of file DatalayerSystem.cs.
References DatalayerSystem.IsDisposed.
|
static |
Gets the default Client port.
Definition at line 166 of file DatalayerSystem.cs.
|
static |
Gets the default Provider port.
Definition at line 171 of file DatalayerSystem.cs.
|
static |
Gets the protocol scheme for IPC communication. Recommended to connect to a DatalayerSystem running on localhost.
Definition at line 183 of file DatalayerSystem.cs.
Referenced by Remote.ToString().
|
static |
Gets the protocol scheme for TCP communication. Recommended to connect to a DatalayerSystem not running on localhost.
Definition at line 177 of file DatalayerSystem.cs.
|
set |
Sets the binary Flatbuffer path, which contains *.bfbs files.
| ObjectDisposedException | Cannot access a disposed object. |
| ArgumentNullException | Argument cannot be null. |
Implements IDatalayerSystem.
Definition at line 228 of file DatalayerSystem.cs.
|
get |
Gets the Converter for Variant to JSON conversions.
| ObjectDisposedException | Cannot access a disposed object. |
Implements IDatalayerSystem.
Definition at line 340 of file DatalayerSystem.cs.
|
get |
Gets the Factory to create Clients and Providers.
| ObjectDisposedException | Cannot access a disposed object. |
| InvalidOperationException | Operation not allowed. |
Implements IDatalayerSystem.
Definition at line 309 of file DatalayerSystem.cs.
|
get |
Gets the path for interprocess communication.
| ObjectDisposedException | Cannot access a disposed object. |
Implements IDatalayerSystem.
Definition at line 193 of file DatalayerSystem.cs.
|
get |
Gets a value that indicates whether the instance is already disposed and useless.
Implements INativeDisposable.
Definition at line 61 of file DatalayerSystem.cs.
Referenced by DatalayerSystem.Start(), and DatalayerSystem.Stop().
|
get |
Gets a value that indicates whether the DatalayerSystem is started.
| ObjectDisposedException | Cannot access a disposed object. |
Implements IDatalayerSystem.
Definition at line 210 of file DatalayerSystem.cs.