TestimoX

API Reference

Class

NetLogonLogWatcher

Namespace ADPlayground
Assembly ADPlayground
Implements
IDisposable
Modifiers sealed

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 optionalposition: 0
Skip duplicate entries if set.
public NetLogonLogWatcher(NetLogonLog parser, Boolean skipDuplicates = false) #

Initializes a new instance of the NetLogonLogWatcher class.

Parameters

parser ADPlayground.NetLogonLog requiredposition: 0
Parser used to convert lines to entries.
skipDuplicates System.Boolean = false optionalposition: 1
Skip duplicate entries if set.

Methods

public virtual Void Dispose() #
Returns: Void
public 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 requiredposition: 0
Path to the NetLogon log file.
cancellationToken System.Threading.CancellationToken = null optionalposition: 1
Token used to cancel watching.

Returns

Asynchronous stream of parsed log entries.