public DistributedCentralStorage(
            DistributedCentralStoreConfiguration configuration,
            ILocationStore locationStore,
            DistributedContentCopier copier,
            CentralStorage fallbackStorage,
            IClock clock)
            : base(configuration, fallbackStorage, copier.FileSystem)
        {
            _copier           = copier;
            _locationStore    = locationStore;
            _checkpointCopies = new VolatileMap <ShortHash, CopyOperation>(clock);
            _checkpointStore  = configuration.IsCheckpointAware ? _locationStore as ICheckpointStore : null;

            _copierWorkingDirectory = new DisposableDirectory(copier.FileSystem, PrivateCas !.RootPath / "Temp");
        }
Exemple #2
0
 /// <nodoc />
 public VolatileSet(IClock clock)
 {
     _map = new VolatileMap <T, Unit>(clock);
 }