/// <summary> /// Creates a new server instance, which exposes dashboard and test runner at given ports /// </summary> /// <param name="configuration">The configuration.</param> /// <param name="testRunner">The test runner instance</param> /// <param name="dashboard">The dashboard instance</param> /// <param name="connectionsTracker">The connection tracker for the host</param> /// <param name="log">The logger</param> public ServerHost(ServerConfiguration configuration, Services.Server testRunner, DashboardService dashboard, AgentsTracker connectionsTracker, ILog log) { dashboardPort = configuration.DashboardPort; testRunnerPort = configuration.TestRunnerPort; this.testRunner = testRunner; this.dashboard = dashboard; this.log = log; ConnectionsTracker = connectionsTracker; }
/// <summary> /// Initializes a new instance of the <see cref="ServerWrapper"/> class. /// </summary> /// <param name="testRunner">The test runner.</param> /// <param name="agentsTracker">The server connections tracker.</param> /// <param name="agents">The agents.</param> /// <param name="serverHost">The server host.</param> public ServerWrapper( Common.Server.Services.Server testRunner, AgentsTracker agentsTracker, AgentsCollection agents, ServerHost serverHost = null) { TestRunner = testRunner; this.agentsTracker = agentsTracker; this.agents = agents; ServerHost = serverHost; }