C# Класс Helios.Topology.NodeBuilder

Static builder class for creating INode instances
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BuildNode ( ) : INode

Creates a new INode instance

FromEndpoint ( IPEndPoint endPoint ) : INode

Creates an INode instance from an IP endpoint

Host ( this n, IPAddress host ) : INode

Add a host to an INode instance

Host ( this n, string host ) : INode

Add a host to an INode instance

MachineName ( this n, string machineName ) : INode

Add a machine name to an INode instance

OperatingSystem ( this n, string osName ) : INode

Add an OS name and version to an INode instance

WithCustomData ( this n, string customData ) : INode

Add a JSON blob to a node's metadata

WithPort ( this n, int portNum ) : INode

Adds a capability to a given INode instance

WithTransportType ( this n, TransportType transportType ) : INode

Adds a capability to a given INode instance

WithVersion ( this n, string serviceVersion ) : INode

Add the version # of the service being used to an INode instance

Описание методов

BuildNode() публичный статический Метод

Creates a new INode instance
public static BuildNode ( ) : INode
Результат INode

FromEndpoint() публичный статический Метод

Creates an INode instance from an IP endpoint
public static FromEndpoint ( IPEndPoint endPoint ) : INode
endPoint System.Net.IPEndPoint A System.NET.IPEndpoint argument, usually from an incoming socket connection
Результат INode

Host() публичный статический Метод

Add a host to an INode instance
public static Host ( this n, IPAddress host ) : INode
n this A valid INode instance
host System.Net.IPAddress A System.Net IpAddress object representing a valid host for a given service
Результат INode

Host() публичный статический Метод

Add a host to an INode instance
public static Host ( this n, string host ) : INode
n this A valid INode instance
host string A string representation of an IP address
Результат INode

MachineName() публичный статический Метод

Add a machine name to an INode instance
public static MachineName ( this n, string machineName ) : INode
n this A valid INode instance
machineName string the name of this machine
Результат INode

OperatingSystem() публичный статический Метод

Add an OS name and version to an INode instance
public static OperatingSystem ( this n, string osName ) : INode
n this A valid INode instance
osName string The name and version of the host operating system
Результат INode

WithCustomData() публичный статический Метод

Add a JSON blob to a node's metadata
public static WithCustomData ( this n, string customData ) : INode
n this A valid INode instance
customData string A JSON-string representing a blob of custom data about this node
Результат INode

WithPort() публичный статический Метод

Adds a capability to a given INode instance
public static WithPort ( this n, int portNum ) : INode
n this A valid INode instance
portNum int the port number for this node
Результат INode

WithTransportType() публичный статический Метод

Adds a capability to a given INode instance
public static WithTransportType ( this n, TransportType transportType ) : INode
n this A valid INode instance
transportType TransportType the type of network connection used by this node
Результат INode

WithVersion() публичный статический Метод

Add the version # of the service being used to an INode instance
public static WithVersion ( this n, string serviceVersion ) : INode
n this A valid INode instance
serviceVersion string The version # of the service this node belongs to
Результат INode