/// <summary>
 /// The public constructor for the 'process' module.
 /// </summary>
 /// <param name="env">The JavaScript environment.</param>
 public ProcessModule(IronJS.Environment env)
     : base(env)
 {
     // Open the console streams.
     this.m_stdout = new NodeWritableStream(env, new StreamWriter(Console.OpenStandardOutput()));
     this.m_stderr = new NodeWritableStream(env, new StreamWriter(Console.OpenStandardError()));
     this.m_stdin = new NodeReadableStream(env, new StreamReader(Console.OpenStandardInput()));
 }
Beispiel #2
0
 public PipeEventArgs(NodeReadableStream src)
 {
     this.m_Src = src;
 }
 /// <summary>
 /// Triggers the OnPipe event (called by the original NodeReadableStream which
 /// sends itself).
 /// </summary>
 /// <param name="src">The NodeReadableStream that is the source of the binding.</param>
 internal void DoPipe(NodeReadableStream src)
 {
     this.m_PipeSource = src;
     if (this.OnPipe != null)
         this.OnPipe(this, new PipeEventArgs(src));
 }