cs-codex-dist-tests/GethPlugin/GethStartResult.cs

35 lines
1.0 KiB
C#

using KubernetesWorkflow;
namespace GethPlugin
{
public interface IGethStartResult
{
RunningContainer RunningContainer { get; }
Port DiscoveryPort { get; }
Port HttpPort { get; }
Port WsPort { get; }
AllGethAccounts AllAccounts { get; }
string PubKey { get; }
}
public class GethStartResult : IGethStartResult
{
public GethStartResult(RunningContainer runningContainer, Port discoveryPort, Port httpPort, Port wsPort, AllGethAccounts allAccounts, string pubKey)
{
RunningContainer = runningContainer;
DiscoveryPort = discoveryPort;
HttpPort = httpPort;
WsPort = wsPort;
AllAccounts = allAccounts;
PubKey = pubKey;
}
public RunningContainer RunningContainer { get; }
public Port DiscoveryPort { get; }
public Port HttpPort { get; }
public Port WsPort { get; }
public AllGethAccounts AllAccounts { get; }
public string PubKey { get; }
}
}