Class FileWatcher
Inheritance
System.Object
FileWatcher
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AttackSurfaceAnalyzer.Utils
Assembly: AsaLib.dll
Syntax
public class FileWatcher : IDisposable
Constructors
| Improve this Doc View SourceFileWatcher()
Declaration
public FileWatcher()
FileWatcher(String)
Declaration
public FileWatcher(string DirectoryName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | DirectoryName |
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 |
|---|---|---|
| System.String | DirectoryName | |
| System.Action<System.EventArgs> | OnChangedAction | |
| System.Action<System.EventArgs> | OnCreatedAction | |
| System.Action<System.EventArgs> | OnDeletedAction | |
| System.Action<System.EventArgs> | OnRenamedAction |
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 |
|---|---|---|
| System.String | DirectoryName | |
| System.Action<System.EventArgs> | OnChangedAction | |
| System.Action<System.EventArgs> | OnCreatedAction | |
| System.Action<System.EventArgs> | OnDeletedAction | |
| System.Action<System.EventArgs> | OnRenamedAction | |
| System.IO.NotifyFilters | NotifyFilters | |
| System.Boolean | IncludeSubdirectories |
Properties
| Improve this Doc View SourceEventList
Declaration
public List<EventArgs> EventList { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.EventArgs> |
Methods
| Improve this Doc View SourceDispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing |
IsRunning()
Declaration
public bool IsRunning()
Returns
| Type | Description |
|---|---|
| System.Boolean |
Start()
Declaration
public void Start()
Stop()
Declaration
public void Stop()
Implements
System.IDisposable