Show / Hide Table of Contents

Class FileWatcher

Inheritance
System.Object
FileWatcher
Namespace: Microsoft.CST.AttackSurfaceAnalyzer.Utils
Assembly: AsaLib.dll
Syntax
public class FileWatcher : IDisposable

Constructors

| Improve this Doc View Source

FileWatcher()

Declaration
public FileWatcher()
| Improve this Doc View Source

FileWatcher(String)

Declaration
public FileWatcher(String DirectoryName)
Parameters
Type Name Description
String DirectoryName
| Improve this Doc View Source

FileWatcher(String, Action<EventArgs>, Action<EventArgs>, Action<EventArgs>, Action<EventArgs>)

Declaration
public FileWatcher(String DirectoryName, Action<EventArgs> OnChangedAction, Action<EventArgs> OnCreatedAction, Action<EventArgs> OnDeletedAction, Action<EventArgs> OnRenamedAction)
Parameters
Type Name Description
String DirectoryName
Action<EventArgs> OnChangedAction
Action<EventArgs> OnCreatedAction
Action<EventArgs> OnDeletedAction
Action<EventArgs> OnRenamedAction
| Improve this Doc View Source

FileWatcher(String, Action<EventArgs>, Action<EventArgs>, Action<EventArgs>, Action<EventArgs>, NotifyFilters, Boolean)

Declaration
public FileWatcher(String DirectoryName, Action<EventArgs> OnChangedAction, Action<EventArgs> OnCreatedAction, Action<EventArgs> OnDeletedAction, Action<EventArgs> OnRenamedAction, NotifyFilters NotifyFilters, bool IncludeSubdirectories)
Parameters
Type Name Description
String DirectoryName
Action<EventArgs> OnChangedAction
Action<EventArgs> OnCreatedAction
Action<EventArgs> OnDeletedAction
Action<EventArgs> OnRenamedAction
NotifyFilters NotifyFilters
System.Boolean IncludeSubdirectories

Properties

| Improve this Doc View Source

EventList

Declaration
public List<EventArgs> EventList { get; }
Property Value
Type Description
List<EventArgs>

Methods

| Improve this Doc View Source

Dispose()

Declaration
public void Dispose()
| Improve this Doc View Source

Dispose(Boolean)

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing
| Improve this Doc View Source

IsRunning()

Declaration
public bool IsRunning()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Start()

Declaration
public void Start()
| Improve this Doc View Source

Stop()

Declaration
public void Stop()
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX