Пример #1
0
 public Watcher(string logsPath, ICsLogsApi parsers, IBaseRepository logRepository, ILogFileRepository logFileRepository)
 {
     this.logsPath          = logsPath;
     this.parsers           = parsers;
     this.logRepository     = logRepository;
     this.logFileRepository = logFileRepository;
 }
Пример #2
0
 public Reader(string path, ICsLogsApi parsers, IBaseRepository logRepository,
               ILogFileRepository logFileRepository)
 {
     this.path              = path;
     this.parsers           = parsers;
     this.logRepository     = logRepository;
     this.logFileRepository = logFileRepository;
 }
Пример #3
0
        public Reader(string path, ICsLogsApi parsers, IBaseRepository logRepository,
                      ILogFileRepository logFileRepository, IProgress <string> progress)
        {
            this.path              = path;
            this.parsers           = parsers;
            this.logRepository     = logRepository;
            this.logFileRepository = logFileRepository;
            _progress              = progress;
            _cacheService          = new PlayersCacheService();
            var connectionString = new ConnectionStringFactory();
            var mongoRepository  = new MongoRepositoryFactory(connectionString);

            _logger = new Logger(mongoRepository);
        }