protected SynchronizationService(IFileSystem fileSystem, UserDto user, SynchronizationCallbacks callbacks, IDiskService diskServiceClient) { _fileSystem = fileSystem; _user = user; _callbacks = callbacks; _lock = _fileSystem.GetReadWriteLock(); _diskService = diskServiceClient; }
public SynchronizationService(IFileSystem fileSystem, UserDto user, SynchronizationCallbacks callbacks) : this(fileSystem, user, callbacks, new DiskServiceClient()) { }
public ISynchronizationService GenerateSynchronizationService(UserDto user, SynchronizationCallbacks callbacks) { if (_synchronizationService != null) _synchronizationService.Dispose(); _synchronizationService = new SynchronizationService(_fileSystem, user, callbacks); return _synchronizationService; }
public ISynchronizationService GenerateSynchronizationService(UserDto user, SynchronizationCallbacks callbacks) { throw new NotImplementedException(); }
public ISynchronizationService GenerateSynchronizationService(UserDto user, SynchronizationCallbacks callbacks) { _lock.EnterWriteLock(); try { return _manipulator.GenerateSynchronizationService(user, callbacks); } finally { _lock.ExitWriteLock(); } }
public SynchronizationServiceMock(IFileSystem fileSystem, UserDto user, SynchronizationCallbacks callbacks, IDiskService diskService) : base(fileSystem, user, callbacks, diskService) { }