|
ctrlX Data Layer API for .NET 5
2.1.0
|
![]() |
Public Member Functions | |
DatalayerSystem (string ipcPath="") | |
Creates a new DatalayerSystem More... | |
void | Dispose () |
void | Start (bool startBroker=false) |
Starts the DatalayerSystem More... | |
void | Stop () |
Stops the DatalayerSystem More... | |
Public Attributes | |
bool | IsDisposed => _disposedValue |
Static Public Attributes | |
static readonly int | DefaultClientPort = 2069 |
Gets the default Client port More... | |
static readonly int | DefaultProviderPort = 2070 |
Gets the default Provider port More... | |
static readonly string | ProtocolSchemeIpc = "ipc://" |
Gets the protocol scheme for IPC communication. Recommended to connect to a DatalayerSystem running on localhost. More... | |
static readonly string | ProtocolSchemeTcp = "tcp://" |
Gets the protocol scheme for TCP communication. Recommended to connect to a DatalayerSystem not running on localhost. More... | |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
Properties | |||||
string | BfbsPath [set] | ||||
Sets the binary Flatbuffer path, which contains *.bfbs files. More... | |||||
IConverter | Converter [get] | ||||
Gets the Converter for Variant to JSON conversions More... | |||||
IFactory | Factory [get] | ||||
Gets the Factory to create Clients and Providers More... | |||||
string | IpcPath [get] | ||||
Gets the path for interprocess communication. More... | |||||
bool | IsStarted [get] | ||||
Indicates whether the DatalayerSystem is started More... | |||||
![]() | |||||
string | BfbsPath [set] | ||||
Sets the binary Flatbuffer path, which contains *.bfbs files. More... | |||||
IConverter | Converter [get] | ||||
Gets the Converter for Variant to JSON conversions. More... | |||||
IFactory | Factory [get] | ||||
Gets the Factory to create Clients and Providers.
| |||||
string | IpcPath [get] | ||||
Gets the interprocess communication path. More... | |||||
bool | IsStarted [get] | ||||
Checks if the DatalayerSystem is started. More... | |||||
![]() | |||||
bool | IsDisposed [get] | ||||
Checks disposed More... | |||||
Definition at line 10 of file DatalayerSystem.cs.
|
inline |
Creates a new DatalayerSystem
ipcPath | Path for interprocess communication. Leave empty for automatic detection |
ArgumentNullException | Argument cannot be null. |
Definition at line 30 of file DatalayerSystem.cs.
References DatalayerSystem.IpcPath.
|
inline |
Definition at line 96 of file DatalayerSystem.cs.
|
inlineprotectedvirtual |
disposing |
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 datalayer, set to false. |
ObjectDisposedException | Cannot access a disposed object |
Example
Implements IDatalayerSystem.
Definition at line 253 of file DatalayerSystem.cs.
References DatalayerSystem.IsDisposed.
|
inline |
Stops the DatalayerSystem
ObjectDisposedException | Cannot access a disposed object |
Implements IDatalayerSystem.
Definition at line 271 of file DatalayerSystem.cs.
References DatalayerSystem.IsDisposed.
|
static |
Gets the default Client port
Definition at line 154 of file DatalayerSystem.cs.
|
static |
Gets the default Provider port
Definition at line 159 of file DatalayerSystem.cs.
bool IsDisposed => _disposedValue |
Definition at line 61 of file DatalayerSystem.cs.
Referenced by DatalayerSystem.Start(), and DatalayerSystem.Stop().
|
static |
Gets the protocol scheme for IPC communication. Recommended to connect to a DatalayerSystem running on localhost.
Definition at line 171 of file DatalayerSystem.cs.
|
static |
Gets the protocol scheme for TCP communication. Recommended to connect to a DatalayerSystem not running on localhost.
Definition at line 165 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. |
Definition at line 217 of file DatalayerSystem.cs.
|
get |
Gets the Converter for Variant to JSON conversions
ObjectDisposedException | Cannot access a disposed object |
Definition at line 325 of file DatalayerSystem.cs.
|
get |
Gets the Factory to create Clients and Providers
ObjectDisposedException | Cannot access a disposed object |
InvalidOperationException | Operation not allowed |
Definition at line 294 of file DatalayerSystem.cs.
|
get |
Gets the path for interprocess communication.
ObjectDisposedException | Cannot access a disposed object |
Definition at line 182 of file DatalayerSystem.cs.
Referenced by DatalayerSystem.DatalayerSystem().
|
get |
Indicates whether the DatalayerSystem is started
ObjectDisposedException | Cannot access a disposed object |
Definition at line 199 of file DatalayerSystem.cs.