Beispiel #1
0
        public DirController(IDirService dirService, IConfiguration config)
        {
            this.config     = config;
            this.dirService = dirService;
            var mongoClient = new MongoDB.Driver.MongoClient(config.GetConnectionString("MongoDbConnection"));
            var database    = mongoClient.GetDatabase(nameof(WitDrive));

            this.fsc   = new FileSystemClient(database, chunkSize: 32768);
            this.space = long.Parse(config.GetSection("DiskSpace").GetSection("Space").Value);
        }
 public FilesFinder(IDirService dirService)
 {
     if (dirService == null) throw new ArgumentNullException("dirService");
     m_DirService = dirService;
 }