Example #1
0
            public ReplSession(ReplView view, int port, Process proc = null)
            {
                replView = view;
                process = proc;
                this.port = port;

                if (proc != null)
                {
                    stderr = new StreamOutputter (proc.StandardError, replView);
                    stdout = new StreamOutputter (proc.StandardOutput, replView);
                    Stderr.Start ();
                    Stdout.Start ();
                }

                var tmprepl = new CSharpReplServerProxy (String.Format ("tcp://127.0.0.1:{0}", port));
                tmprepl.Start ();
                repl = tmprepl;
            }
Example #2
0
            public ReplSession(ReplView view, string address)
            {
                replView = view;
                this.port = port;

                var tmprepl = new CSharpReplServerProxy (address);
                tmprepl.Start ();
                repl = tmprepl;
            }