Domain Detective

API Reference

Class

InternalLoggerPowerShell

Namespace DomainDetective.PowerShell
Assembly DomainDetective.PowerShell

This class allow connecting to the InternalLogger class of ADPlayground and act on events from it in different streams

Inheritance

  • Object
  • InternalLoggerPowerShell

Constructors

public InternalLoggerPowerShell(InternalLogger logger, Action<String> writeVerboseAction = null, Action<String> writeWarningAction = null, Action<String> writeDebugAction = null, Action<ErrorRecord> writeErrorAction = null, Action<ProgressRecord> writeProgressAction = null, Action<InformationRecord> writeInformationAction = null) #

Initialize the InternalLoggerPowerShell class

Parameters

logger DomainDetective.InternalLogger requiredposition: 0
writeVerboseAction System.Action{System.String} = null optionalposition: 1
writeWarningAction System.Action{System.String} = null optionalposition: 2
writeDebugAction System.Action{System.String} = null optionalposition: 3
writeErrorAction System.Action{System.Management.Automation.ErrorRecord} = null optionalposition: 4
writeProgressAction System.Action{System.Management.Automation.ProgressRecord} = null optionalposition: 5
writeInformationAction System.Action{System.Management.Automation.InformationRecord} = null optionalposition: 6

Methods

Logger_OnVerboseMessage(System.Object sender, DomainDetective.LogEventArgs e) #

Message event handler

Parameters

sender System.Object required
e DomainDetective.LogEventArgs required
public Void ResetActivityIdCounter() #
Returns: Void

Resets the progress activity id counter.

public Void ResetErrorIdCounter() #
Returns: Void

Resets the error id counter.

WriteVerbose(System.String message, System.Object[] eArgs) #

Method to write verbose message to PowerShell

Parameters

message System.String required
eArgs System.Object[] required
{{ include "footer" }}