/// <summary> /// Starts the specified output stream. /// </summary> /// <param name="outputStream">The output stream.</param> /// <param name="processHost">The process host.</param> public void Start(MemoryMessageStream outputStream, ConsoleHost.IProcessHost processHost) { this.outputStream = outputStream; this.processHost = processHost; AppDomain.CurrentDomain.SetData(".output", this.outputStream); AppDomain.CurrentDomain.SetData(".processHost", this.processHost); this.sponsor.Register((MarshalByRefObject)this.processHost); this.sponsor.Register(this.outputStream); this.webServer.Start(); }
/// <summary> /// Initializes a new instance of the <see cref="ProcessHostWrapper"/> class. /// </summary> /// <param name="inner">The inner interface.</param> public ProcessHostWrapper(ConsoleHost.IProcessHost inner) { this.inner = inner; }