Class PeerInfo
Represents information about a peer node in the network.
Implements
Inherited Members
Namespace: Morpheo.Sdk
Assembly: Morpheo.Sdk.dll
Syntax
public record PeerInfo : IEquatable<PeerInfo>
Constructors
| Edit this page View SourcePeerInfo(string, string, string, int, NodeRole, string[])
Represents information about a peer node in the network.
Declaration
public PeerInfo(string Id, string Name, string IpAddress, int Port, NodeRole Role, string[] Tags)
Parameters
| Type | Name | Description |
|---|---|---|
| string | Id | The unique identifier of the peer. |
| string | Name | The name of the peer. |
| string | IpAddress | The IP address of the peer. |
| int | Port | The port number of the peer. |
| NodeRole | Role | The role of the peer node. |
| string[] | Tags | A list of tags associated with the peer. |
Properties
| Edit this page View SourceId
The unique identifier of the peer.
Declaration
public string Id { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
IpAddress
The IP address of the peer.
Declaration
public string IpAddress { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Name
The name of the peer.
Declaration
public string Name { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Port
The port number of the peer.
Declaration
public int Port { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
Role
The role of the peer node.
Declaration
public NodeRole Role { get; init; }
Property Value
| Type | Description |
|---|---|
| NodeRole |
Tags
A list of tags associated with the peer.
Declaration
public string[] Tags { get; init; }
Property Value
| Type | Description |
|---|---|
| string[] |