示例#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);
        }
示例#2
0
 public PlatoonWorker(string savePath)
 {
     _platoonFileService = new PlatoonFileService(savePath);
     _platoons           = _platoonFileService.Load();
 }
示例#3
0
 public GetPlatoonsHandler(StreamWrapperService streamWrapperService)
 {
     _streamWrapperService = streamWrapperService;
     _platoonFileService   = new PlatoonFileService(ConfigContainer.GetConfig <ServerConfig>().SaveFolder);
 }