src/Stratis.FederatedPeg.IntegrationTests.Tools/FederatedNetworkScripts/NodeSetup.cs
/// <summary>
/// Configures the specified node type.
/// </summary>
/// <param name="name">Friendly name of the node (this isn't the agent prefix).</param>
/// <param name="nodeType">Type of the node.</param>
/// <param name="networkType">Type of the network.</param>
/// <param name="daemonPath">Path to the node Daemon to run</param>
/// <param name="defaultConfigurator">Optional function to setup a default NodeSetup configuration</param>
/// <returns><see cref="NodeSetup"/> instance</returns>
Configures the specified node type.
Configures the specified node type .
public static NodeSetup Configure(string name, NodeType nodeType, NetworkType networkType, string daemonPath, Func<NodeSetup, NodeSetup> defaultConfigurator = null)
        {
            NodeSetup nodeSetup = new NodeSetup(name, nodeType, networkType, daemonPath);
            defaultConfigurator?.Invoke(nodeSetup);
            return nodeSetup;
        }
public static NodeSetup Configure ( string name , NodeType nodeType , NetworkType networkType , string daemonPath , Func < NodeSetup , NodeSetup > defaultConfigurator = null ) { NodeSetup nodeSetup = new NodeSetup ( name , nodeType , networkType , daemonPath ) ; defaultConfigurator ? . Invoke ( nodeSetup ) ; return nodeSetup ; }
Configures the specified node type.
Configures the specified node type .
None
name
string
Friendly name of the node (this isn't the agent prefix).
Friendly name of the node ( this isn ' t the agent prefix ) .
nodeType
NodeType
Type of the node.
Type of the node .
networkType
NetworkType
Type of the network.
Type of the network .
daemonPath
string
Path to the node Daemon to run
Path to the node Daemon to run
defaultConfigurator
Func<NodeSetup, NodeSetup>
Optional function to setup a default NodeSetup configuration
Optional function to setup a default NodeSetup configuration