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