示例#1
0
        public void ProcessRequest(HttpContext context)
        {
            m_Context = context;

            using (WebProcess wp = new WebProcess(context, OutputProcessor))
            {

                string filename = @"D:\Programme\Go\bin\hw.go";
                if (System.Environment.OSVersion.Platform == System.PlatformID.Unix)
                    filename = @"/root/sources/go/hw.go";

                //wp.SendInput("go", "{0} \"{1}\"", "run", filename);
                wp.SendInput("gofmt", "\"{1}\"", "run", filename);

                System.Console.WriteLine("ciao");
            }
        }
示例#2
0
        public void ProcessRequest(HttpContext context)
        {
            m_Context = context;

            using (WebProcess wp = new WebProcess(context, OutputProcessor))
            {
                string filename = @"D:\Programme\Go\bin\hw.go";
                if (System.Environment.OSVersion.Platform == System.PlatformID.Unix)
                {
                    filename = @"/root/sources/go/hw.go";
                }

                //wp.SendInput("go", "{0} \"{1}\"", "run", filename);
                wp.SendInput("gofmt", "\"{1}\"", "run", filename);

                System.Console.WriteLine("ciao");
            }
        }