Class FileSystemMonitor
Actively monitors the filesystem for changes.
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.Collectors
Assembly: AsaLib.dll
Syntax
public class FileSystemMonitor : BaseMonitor, IPlatformRunnable, IDisposable
Constructors
| Improve this Doc View SourceFileSystemMonitor(MonitorCommandOptions, Action<FileMonitorObject>)
Declaration
public FileSystemMonitor(MonitorCommandOptions opts, Action<FileMonitorObject> changeHandler)
Parameters
| Type | Name | Description |
|---|---|---|
| MonitorCommandOptions | opts | |
| System.Action<FileMonitorObject> | changeHandler |
Fields
| Improve this Doc View SourcedefaultFiltersList
Declaration
public static readonly NotifyFilters[] defaultFiltersList
Field Value
| Type | Description |
|---|---|
| System.IO.NotifyFilters[] |
Methods
| Improve this Doc View SourceCanRunOnPlatform()
Declaration
public override bool CanRunOnPlatform()
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
| Improve this Doc View SourceChangeTypeToChangeType(WatcherChangeTypes)
Declaration
public static CHANGE_TYPE ChangeTypeToChangeType(WatcherChangeTypes changeType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.WatcherChangeTypes | changeType |
Returns
| Type | Description |
|---|---|
| CHANGE_TYPE |
Dispose()
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 |
StartRun()
Declaration
public override void StartRun()
Overrides
| Improve this Doc View SourceStopRun()
Declaration
public override void StopRun()
Overrides
| Improve this Doc View SourceWriteRename(RenamedEventArgs, NotifyFilters)
Declaration
public void WriteRename(RenamedEventArgs objIn, NotifyFilters filters)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.RenamedEventArgs | objIn | |
| System.IO.NotifyFilters | filters |
Implements
System.IDisposable