Exemplo n.º 1
0
 /// <summary>
 ///     Initializes a new instance of the MyHost class. Keep
 ///     a reference to the host application object so that it
 ///     can be informed of when to exit.
 /// </summary>
 public ScriptingHost(ApplicationSettings settings, InitialSessionState initialState)
 {
     ui            = new ScriptingHostUserInterface(settings, this);
     privateData   = new ScriptingHostPrivateData(this);
     sessionState  = initialState;
     CloseRunner   = false;
     CloseMessages = new List <string>();
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Initializes a new instance of the MyHost class. Keep
 ///     a reference to the host application object so that it
 ///     can be informed of when to exit.
 /// </summary>
 public ScriptingHost(ApplicationSettings settings, InitialSessionState initialState)
 {
     ui = new ScriptingHostUserInterface(settings, this);
     pushedRunspaces = new Stack <Runspace>();
     privateData     = new ScriptingHostPrivateData(this);
     sessionState    = initialState;
     CloseRunner     = false;
 }
Exemplo n.º 3
0
 /// <summary>
 ///     Initializes a new instance of the MyHost class. Keep
 ///     a reference to the host application object so that it
 ///     can be informed of when to exit.
 /// </summary>
 public ScriptingHost(ApplicationSettings settings, RunspaceConfiguration runspaceConfiguration)
 {
     this.runspaceConfiguration = runspaceConfiguration;
     ui = new ScriptingHostUserInterface(settings);
     pushedRunspaces = new Stack<Runspace>();
     privateData = new ScriptingHostPrivateData(this);
     CloseRunner = false;
 }