Interface IMorpheoNode
Represents a Morpheo node causing the initialization and management of services (Database, Network, etc.).
Namespace: Morpheo.Sdk
Assembly: Morpheo.Sdk.dll
Syntax
public interface IMorpheoNode
Properties
| Edit this page View SourceDiscovery
Gets the network discovery layer to subscribe to PeerFound/PeerLost events.
Declaration
INetworkDiscovery Discovery { get; }
Property Value
| Type | Description |
|---|---|
| INetworkDiscovery |
Methods
| Edit this page View SourceStartAsync(CancellationToken)
Starts the node's services (Database + Network).
Declaration
Task StartAsync(CancellationToken ct = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | ct | Cancellation token. |
Returns
| Type | Description |
|---|---|
| Task |
StopAsync()
Stops the node gracefully.
Declaration
Task StopAsync()
Returns
| Type | Description |
|---|---|
| Task |