Class FileMonitorBase
The file monitor base.
Inheritance
System.Object
FileMonitorBase
Implements
Namespace: MESL.SqlRace.Domain.Monitoring
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class FileMonitorBase : Object, IFileMonitor
Constructors
FileMonitorBase(IFileSystemService, IFileSystemWatcherAdapter)
Initialises a new instance of the File
Declaration
protected FileMonitorBase(IFileSystemService fileSystemService, IFileSystemWatcherAdapter fileSystemWatcherAdapter)
Parameters
Type | Name | Description |
---|---|---|
MESL. |
fileSystemService | The file system service. |
MESL. |
fileSystemWatcherAdapter | The file system watcher. |
Fields
EventAggregator
The event aggregator.
Declaration
protected readonly IEventAggregator EventAggregator
Field Value
Type | Description |
---|---|
MESL. |
FileSystemService
The file system service.
Declaration
protected readonly IFileSystemService FileSystemService
Field Value
Type | Description |
---|---|
MESL. |
FileSystemWatcherAdapter
The file system watcher.
Declaration
protected readonly IFileSystemWatcherAdapter FileSystemWatcherAdapter
Field Value
Type | Description |
---|---|
MESL. |
Properties
FileExtension
Gets or sets the file extension.
Declaration
public string FileExtension { get; set; }
Property Value
Type | Description |
---|---|
System. |
MonitorSubFolder
Gets or sets a value indicating whether monitor sub folder.
Declaration
public bool MonitorSubFolder { get; set; }
Property Value
Type | Description |
---|---|
System. |
Path
Gets or sets the path.
Declaration
public string Path { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
StartMonitoring()
The start monitoring.
Declaration
public void StartMonitoring()
StopMonitoring()
The stop monitoring.
Declaration
public void StopMonitoring()