Ejemplo n.º 1
0
        public ClientTestUpdater(string serverId, int serverPort)
        {
            _serverConnectionService = new ServerConnectionService(serverId, serverPort);

            _subjectFileService = new SubjectFileService(ConfigContainer.GetConfig <ClientConfig>().SaveFolder);
            _platoonFileService = new PlatoonFileService(ConfigContainer.GetConfig <ClientConfig>().SaveFolder);

            var config = ConfigContainer.GetConfig <ClientConfig>();

            _clientTestFileService =
                new ClientTestFileService(config.TestFolder, config.ImageFolder);
        }
Ejemplo n.º 2
0
 public PlatoonWorker(string savePath)
 {
     _platoonFileService = new PlatoonFileService(savePath);
     _platoons           = _platoonFileService.Load();
 }
Ejemplo n.º 3
0
 public GetPlatoonsHandler(StreamWrapperService streamWrapperService)
 {
     _streamWrapperService = streamWrapperService;
     _platoonFileService   = new PlatoonFileService(ConfigContainer.GetConfig <ServerConfig>().SaveFolder);
 }