예제 #1
0
파일: Service1.cs 프로젝트: tmcnab/RaptorJS
 public RaptorService()
 {
     InitializeComponent();
     var serverUrl = "http://localhost:54320";
     var javascriptMain = File.ReadAllText("./Main.js");
     Server = new RaptorServer(new Uri(serverUrl), javascriptMain);
 }
예제 #2
0
파일: Main.cs 프로젝트: tmcnab/RaptorJS
        static void Main(string[] args)
        {
            var serverUrl = "http://localhost:54321";
            var javascript = File.ReadAllText("./Main.js");

            Console.WriteLine(">>>> ConsoleServer Starting ...");
            using (RaptorServer server = new RaptorServer(new Uri(serverUrl), javascript))
            {
                server.Start();
            }
        }