コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WebProcessMonitor"/> class.
 /// </summary>
 /// <param name="process">The process.</param>
 public WebProcessMonitor(ConsoleHost.IProcessHost process)
     : base(process)
 {
     process.RegisterOutputConsumer(this.outputStream);
     this.hostWrapper = new WebProcessMonitor.ProcessHostWrapper(process);
     this.host = WebProcessMonitor.ProcessMonitorHost.Create();
     this.hostSponser.Register(this.host);
 }