API Reference
Class
NetLogonLogWatcher
Watches NetLogon debug logs using FileSystemWatcher.
Inheritance
- Object
- NetLogonLogWatcher
Constructors
NetLogonLogWatcher 2 overloads
public NetLogonLogWatcher(Boolean skipDuplicates = false) #Initializes a new instance of the NetLogonLogWatcher class.
Parameters
- skipDuplicates System.Boolean = false
- Skip duplicate entries if set.
public NetLogonLogWatcher(NetLogonLog parser, Boolean skipDuplicates = false) #Initializes a new instance of the NetLogonLogWatcher class.
Parameters
- parser ADPlayground.NetLogonLog
- Parser used to convert lines to entries.
- skipDuplicates System.Boolean = false
- Skip duplicate entries if set.
Methods
public virtual Void Dispose() #Returns:
Voidpublic IAsyncEnumerable<NetLogonLogEntryGeneric> WatchAsync(String path, CancellationToken cancellationToken = null) #Returns:
IAsyncEnumerable<NetLogonLogEntryGeneric>Watches the specified file and yields new entries as they are written.
Parameters
- path System.String
- Path to the NetLogon log file.
- cancellationToken System.Threading.CancellationToken = null
- Token used to cancel watching.
Returns
Asynchronous stream of parsed log entries.