Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }