The provider interface
More...
The provider interface
Definition at line 8 of file IProvider.cs.
◆ RegisterType()
DLR_RESULT RegisterType |
( |
string |
address, |
|
|
string |
bfbsPath |
|
) |
| |
Registers the type to the datalayer.
- Parameters
-
address | Address of the node |
bfbsPath | Path to flatbuffer bfbs |
- Returns
- Result of method call
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
◆ Start()
Starts the provider.
- Returns
- Result of method call
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
◆ Stop()
Stops the provider.
- Returns
- Result of method call</returns
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
◆ UnregisterNode()
Unregisters the node from the datalayer.
- Parameters
-
address | Address of the node |
- Returns
- Result of method call
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
◆ UnregisterType()
Unregisters the type from the datalayer.
- Parameters
-
address | Address of the node |
- Returns
- Result of method call
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
◆ DLR_RESULT
Registers the node to the datalayer.
- Parameters
-
address | Address of the node |
handler | Reference to the node handler |
- Returns
- The corresponding provider node
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
ArgumentNullException | Argument cannot be null. |
Example
using var provider =system.Factory.CreateIpcProvider();
var myNodeHandler = new MyNodeHandler();
var result = provider.RegisterNode("dotnet/myInt", myNodeHandler);
Definition at line 63 of file IProvider.cs.
◆ AuthToken
Gets the authentication token (JWT) as flatbuffers 'Token' while processing requests.
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
InvalidOperationException | Operation not allowed |
Definition at line 20 of file IProvider.cs.
◆ IsConnected
Checks the connection.
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Definition at line 26 of file IProvider.cs.
◆ System
The documentation for this interface was generated from the following file:
- D:/Jenkins/workspace/sdk.datalayer.csharp/datalayer/IProvider.cs