Exemplo n.º 1
0
 /// <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()));
 }
Exemplo n.º 2
0
 /// <summary>
 /// <see>http://nodejs.org/docs/v0.4.8/api/streams.html#stream.pipe</see>
 /// </summary>
 public override void pipe(NodeWritableStream destination, IronJS.ArrayObject options)
 {
     this.m_PipeDestination = destination;
     this.m_PipeDestination.DoPipe(this);
 }
Exemplo n.º 3
0
 /// <summary>
 /// <see>http://nodejs.org/docs/v0.4.8/api/streams.html#stream.pipe</see>
 /// </summary>
 public override void pipe(NodeWritableStream destination)
 {
     pipe(destination, null);
 }
Exemplo n.º 4
0
 public abstract void pipe(NodeWritableStream destination, IronJS.ArrayObject options);
Exemplo n.º 5
0
 public abstract void pipe(NodeWritableStream destination);
Exemplo n.º 6
0
 /// <summary>
 /// <see>http://nodejs.org/docs/v0.4.8/api/streams.html#stream.pipe</see>
 /// </summary>
 public override void pipe(NodeWritableStream destination, IronJS.ArrayObject options)
 {
     throw new NotSupportedException();
 }
Exemplo n.º 7
0
 /// <summary>
 /// <see>http://nodejs.org/docs/v0.4.8/api/streams.html#stream.pipe</see>
 /// </summary>
 public override void pipe(NodeWritableStream destination)
 {
     throw new NotSupportedException();
 }