Class MorpheoOptions
Configuration options for the Morpheo node.
Inherited Members
Namespace: Morpheo.Sdk
Assembly: Morpheo.Sdk.dll
Syntax
public class MorpheoOptions
Fields
| Edit this page View SourceDEFAULT_PORT
Declaration
public const int DEFAULT_PORT = 5555
Field Value
| Type | Description |
|---|---|
| int |
Properties
| Edit this page View SourceCapabilities
Gets or sets the list of node capabilities.
Declaration
public List<string> Capabilities { get; set; }
Property Value
| Type | Description |
|---|---|
| List<string> |
CompactionInterval
Gets or sets the frequency of the log Garbage Collector execution. Default is 1 hour.
Declaration
public TimeSpan CompactionInterval { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
DiscoveryInterval
Gets or sets the network discovery interval. Default is 3 seconds.
Declaration
public TimeSpan DiscoveryInterval { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
DiscoveryPort
Gets or sets the port used for discovery. Default is 5555.
Declaration
public int DiscoveryPort { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Hosting
Configuration for "White Label" hosting (Windows Service, Linux Daemon, Android Notification).
Declaration
public HostingOptions Hosting { get; }
Property Value
| Type | Description |
|---|---|
| HostingOptions |
LocalStoragePath
Gets or sets the local storage path.
Declaration
public string? LocalStoragePath { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
LogRetention
Gets or sets the duration to keep synchronization logs before cleanup. Default is 30 days.
Declaration
public TimeSpan LogRetention { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
NodeName
Gets or sets the name of the node. Default is the machine name.
Declaration
public string NodeName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Printers
Gets the printer configuration options.
Declaration
public PrinterOptions Printers { get; }
Property Value
| Type | Description |
|---|---|
| PrinterOptions |
Role
Gets or sets the role of the node. Default is StandardClient.
Declaration
public NodeRole Role { get; set; }
Property Value
| Type | Description |
|---|---|
| NodeRole |
UseSecureConnection
Gets or sets a value indicating whether to use a secure connection. Default is false.
Declaration
public bool UseSecureConnection { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
| Edit this page View SourceValidate()
Validates the configuration options.
Declaration
public void Validate()
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown when the port is invalid. |