示例#1
0
 /// <summary>
 /// Creates a new instance of the ConsoleServicePSHost class
 /// with the given IConsoleHost implementation.
 /// </summary>
 /// <param name="hostDetails">
 /// Provides details about the host application.
 /// </param>
 /// <param name="hostSupportsInteractiveSession">
 /// An implementation of IHostSupportsInteractiveSession for runspace management.
 /// </param>
 public ConsoleServicePSHost(
     HostDetails hostDetails,
     IHostSupportsInteractiveSession hostSupportsInteractiveSession)
 {
     this.hostDetails       = hostDetails;
     this.hostUserInterface = new ConsoleServicePSHostUserInterface();
     this.hostSupportsInteractiveSession = hostSupportsInteractiveSession;
 }
 /// <summary>
 /// Creates a new instance of the ConsoleServicePSHost class
 /// with the given IConsoleHost implementation.
 /// </summary>
 /// <param name="consoleHost">
 /// The IConsoleHost that will be used to perform host actions for this class.
 /// </param>
 public ConsoleServicePSHost(IConsoleHost consoleHost)
 {
     this.consoleHost = consoleHost;
     this.hostUserInterface = new ConsoleServicePSHostUserInterface(consoleHost);
 }
 /// <summary>
 /// Creates a new instance of the ConsoleServicePSHost class
 /// with the given IConsoleHost implementation.
 /// </summary>
 public ConsoleServicePSHost()
 {
     this.hostUserInterface = new ConsoleServicePSHostUserInterface();
 }
 /// <summary>
 /// Creates a new instance of the ConsoleServicePSHost class
 /// with the given IConsoleHost implementation.
 /// </summary>
 /// <param name="hostDetails">
 /// Provides details about the host application.
 /// </param>
 public ConsoleServicePSHost(HostDetails hostDetails)
 {
     this.hostDetails       = hostDetails;
     this.hostUserInterface = new ConsoleServicePSHostUserInterface();
 }
 /// <summary>
 /// Creates a new instance of the ConsoleServicePSHost class
 /// with the given IConsoleHost implementation.
 /// </summary>
 public ConsoleServicePSHost()
 {
     this.hostUserInterface = new ConsoleServicePSHostUserInterface();
 }
示例#6
0
 /// <summary>
 /// Creates a new instance of the ConsoleServicePSHost class
 /// with the given IConsoleHost implementation.
 /// </summary>
 /// <param name="consoleHost">
 /// The IConsoleHost that will be used to perform host actions for this class.
 /// </param>
 public ConsoleServicePSHost(IConsoleHost consoleHost)
 {
     this.consoleHost       = consoleHost;
     this.hostUserInterface = new ConsoleServicePSHostUserInterface(consoleHost);
 }