public SnoopPSHost(Action <string> onOutput) { this.ui = new SnoopPSHostUserInterface(); this.ui.OnDebug += onOutput; this.ui.OnError += onOutput; this.ui.OnVerbose += onOutput; this.ui.OnWarning += onOutput; this.ui.OnWrite += onOutput; this.privateHashtable = new Hashtable(); this.privateData = new PSObject(this.privateHashtable); }
public SnoopPSHost(Action<string> onOutput) { this.ui = new SnoopPSHostUserInterface(); this.ui.OnDebug += onOutput; this.ui.OnError += onOutput; this.ui.OnVerbose += onOutput; this.ui.OnWarning += onOutput; this.ui.OnWrite += onOutput; this.privateHashtable = new Hashtable(); this.privateData = new PSObject(this.privateHashtable); }