C# Class WaveBox.Service.Services.FileManager.AbstractFileManager

Inheritance: IFileManager
Datei anzeigen Open project: einsteinx2/WaveBox

Protected Properties

Property Type Description
logger log4net.ILog
scanQueue WaveBox.Core.OperationQueue.DelayedOperationQueue

Public Methods

Method Description
ItemCreated ( string fullPath ) : void
ItemDeleted ( ) : void
ItemRenamed ( string fullPath ) : void
OnChanged ( object source, FileSystemEventArgs e ) : void

OnChanged() is currently a stub.

OnCreated ( object source, FileSystemEventArgs e ) : void

OnCreated() handles when an item is created in the watch folders, and forces a re-scan of the specific folder in which the file was created.

OnDeleted ( object source, FileSystemEventArgs e ) : void

OnDeleted() handles when an object is deleted from a watch folder, starting an orphan scan on the database

OnRenamed ( object source, RenamedEventArgs e ) : void

OnRenamed() handles when an object is renamed in a watch folder, purging the old object and adding the new one.

Start ( ) : bool
Stop ( ) : bool

Method Details

ItemCreated() public method

public ItemCreated ( string fullPath ) : void
fullPath string
return void

ItemDeleted() public method

public ItemDeleted ( ) : void
return void

ItemRenamed() public method

public ItemRenamed ( string fullPath ) : void
fullPath string
return void

OnChanged() public method

OnChanged() is currently a stub.
public OnChanged ( object source, FileSystemEventArgs e ) : void
source object
e System.IO.FileSystemEventArgs
return void

OnCreated() public method

OnCreated() handles when an item is created in the watch folders, and forces a re-scan of the specific folder in which the file was created.
public OnCreated ( object source, FileSystemEventArgs e ) : void
source object
e System.IO.FileSystemEventArgs
return void

OnDeleted() public method

OnDeleted() handles when an object is deleted from a watch folder, starting an orphan scan on the database
public OnDeleted ( object source, FileSystemEventArgs e ) : void
source object
e System.IO.FileSystemEventArgs
return void

OnRenamed() public method

OnRenamed() handles when an object is renamed in a watch folder, purging the old object and adding the new one.
public OnRenamed ( object source, RenamedEventArgs e ) : void
source object
e System.IO.RenamedEventArgs
return void

Start() public abstract method

public abstract Start ( ) : bool
return bool

Stop() public abstract method

public abstract Stop ( ) : bool
return bool

Property Details

logger protected_oe static_oe property

protected static log4net.ILog logger
return log4net.ILog

scanQueue protected_oe property

protected DelayedOperationQueue,WaveBox.Core.OperationQueue scanQueue
return WaveBox.Core.OperationQueue.DelayedOperationQueue