C# Class CmisSync.Lib.Watcher

Watches the local filesystem for changes.
Inheritance: System.IO.FileSystemWatcher
显示文件 Open project: aegif/CmisSync Class Usage Examples

Public Methods

Method Description
Clear ( ) : void

remove all from changes

GetChangeCount ( ) : int

Get the change queue.

GetChangeQueue ( ) : Queue

Get the change queue.

Watcher ( string folder ) : System

Constructor.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Dispose of the watcher. Called by RepoBase.Dispose via System.ComponentModel

Private Methods

Method Description
AddChange ( FileSystemEventArgs change ) : void

insert in changes.

ChangeHandle ( FileSystemEventArgs change ) : void
InvokeChangeEvent ( FileSystemEventArgs args ) : void
OnChanged ( object source, FileSystemEventArgs e ) : void
OnCreated ( object source, FileSystemEventArgs e ) : void
OnDeleted ( object source, FileSystemEventArgs e ) : void
OnError ( object source, ErrorEventArgs e ) : void
OnRenamed ( object source, RenamedEventArgs e ) : void

Method Details

Clear() public method

remove all from changes
public Clear ( ) : void
return void

Dispose() protected method

Dispose of the watcher. Called by RepoBase.Dispose via System.ComponentModel
protected Dispose ( bool disposing ) : void
disposing bool
return void

GetChangeCount() public method

Get the change queue.
public GetChangeCount ( ) : int
return int

GetChangeQueue() public method

Get the change queue.
public GetChangeQueue ( ) : Queue
return Queue

Watcher() public method

Constructor.
public Watcher ( string folder ) : System
folder string
return System