public ServerBuilderFactory( IServerStatusFactory serverStatusFactory, IKeysPreparer keysPreparer, IModsetConfigurationProvider modsetConfigurationProvider, IArmaProcessManager armaProcessManager, IArmaProcessFactory armaProcessFactory, ILogger <ServerBuilder> serverBuilderLogger, ILogger <DedicatedServer> dedicatedServerLogger) { _serverStatusFactory = serverStatusFactory; _keysPreparer = keysPreparer; _modsetConfigurationProvider = modsetConfigurationProvider; _armaProcessManager = armaProcessManager; _armaProcessFactory = armaProcessFactory; _serverBuilderLogger = serverBuilderLogger; _dedicatedServerLogger = dedicatedServerLogger; }
public DedicatedServer( int port, IModset modset, IModsetConfig modsetConfig, IServerStatusFactory serverStatusFactory, IKeysPreparer keysPreparer, IArmaProcessManager armaProcessManager, IArmaProcess armaProcess, IEnumerable <IArmaProcess> headlessClients, ILogger <DedicatedServer> logger) { Port = port; SteamQueryPort = port + 1; _keysPreparer = keysPreparer; _armaProcessManager = armaProcessManager; Modset = modset; _modsetConfig = modsetConfig; _serverStatusFactory = serverStatusFactory; _armaProcess = InitializeArmaProcess(armaProcess); _headlessProcesses = headlessClients.ToList(); _logger = logger; }