Exemplo n.º 1
0
        public WatchedFolderMonitor(ISyncthingManager syncthingManager, IDirectoryWatcherFactory directoryWatcherFactory)
        {
            this.syncthingManager        = syncthingManager;
            this.directoryWatcherFactory = directoryWatcherFactory;

            this.syncthingManager.Folders.FoldersChanged   += this.FoldersChanged;
            this.syncthingManager.Folders.SyncStateChanged += this.FolderSyncStateChanged;
            this.syncthingManager.StateChanged             += this.StateChanged;
        }
Exemplo n.º 2
0
        public WatchedFolderMonitor(ISyncthingManager syncthingManager, IDirectoryWatcherFactory directoryWatcherFactory)
        {
            this.syncthingManager = syncthingManager;
            this.directoryWatcherFactory = directoryWatcherFactory;

            this.syncthingManager.Folders.FoldersChanged += this.FoldersChanged;
            this.syncthingManager.Folders.SyncStateChanged += this.FolderSyncStateChanged;
            this.syncthingManager.StateChanged += this.StateChanged;
        }