Show / Hide Table of Contents

Class FileMonitorBase

The file monitor base.

Inheritance
System.Object
FileMonitorBase
Implements
IFileMonitor
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 FileMonitorBase class.

Declaration
protected FileMonitorBase(IFileSystemService fileSystemService, IFileSystemWatcherAdapter fileSystemWatcherAdapter)
Parameters
Type Name Description
MESL.SqlRace.Common.Services.IFileSystemService fileSystemService

The file system service.

MESL.SqlRace.Common.Services.IFileSystemWatcherAdapter fileSystemWatcherAdapter

The file system watcher.

Fields

EventAggregator

The event aggregator.

Declaration
protected readonly IEventAggregator EventAggregator
Field Value
Type Description
MESL.SqlRace.Common.Events.IEventAggregator

FileSystemService

The file system service.

Declaration
protected readonly IFileSystemService FileSystemService
Field Value
Type Description
MESL.SqlRace.Common.Services.IFileSystemService

FileSystemWatcherAdapter

The file system watcher.

Declaration
protected readonly IFileSystemWatcherAdapter FileSystemWatcherAdapter
Field Value
Type Description
MESL.SqlRace.Common.Services.IFileSystemWatcherAdapter

Properties

FileExtension

Gets or sets the file extension.

Declaration
public string FileExtension { get; set; }
Property Value
Type Description
System.String

MonitorSubFolder

Gets or sets a value indicating whether monitor sub folder.

Declaration
public bool MonitorSubFolder { get; set; }
Property Value
Type Description
System.Boolean

Path

Gets or sets the path.

Declaration
public string Path { get; set; }
Property Value
Type Description
System.String

Methods

StartMonitoring()

The start monitoring.

Declaration
public void StartMonitoring()

StopMonitoring()

The stop monitoring.

Declaration
public void StopMonitoring()

Implements

IFileMonitor
In This Article
  • Constructors
    • FileMonitorBase(IFileSystemService, IFileSystemWatcherAdapter)
  • Fields
    • EventAggregator
    • FileSystemService
    • FileSystemWatcherAdapter
  • Properties
    • FileExtension
    • MonitorSubFolder
    • Path
  • Methods
    • StartMonitoring()
    • StopMonitoring()
  • Implements
Back to top Generated by DocFX