Exemple #1
0
 public RemoteSyncDirectory(
     IRemoteDirectory remoteDirectory,
     bool compressBlobs = false)
 {
     RemoteDirectory                   = remoteDirectory;
     _remoteIndexOutputFactory         = GetAzureIndexOutputFactory();
     _remoteDirectoryIndexInputFactory = GetAzureIndexInputFactory();
     LoggingService = new TraceLoggingService();
     CompressBlobs  = compressBlobs;
 }
Exemple #2
0
 public RemoteSyncDirectory(IRemoteDirectory remoteDirectory,
                            Directory cacheDirectory,
                            bool compressBlobs = false)
 {
     CacheDirectory                    = cacheDirectory;
     LoggingService                    = new TraceLoggingService();
     RemoteDirectory                   = remoteDirectory;
     _lockFactory                      = GetLockFactory();
     _remoteIndexOutputFactory         = GetAzureIndexOutputFactory();
     _remoteDirectoryIndexInputFactory = GetAzureIndexInputFactory();
     GuardCacheDirectory(CacheDirectory);
     CompressBlobs = compressBlobs;
 }