Esempio n. 1
0
 public RaptorService()
 {
     InitializeComponent();
     var serverUrl = "http://localhost:54320";
     var javascriptMain = File.ReadAllText("./Main.js");
     Server = new RaptorServer(new Uri(serverUrl), javascriptMain);
 }
Esempio n. 2
0
        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();
            }
        }