private static void Main() { Title("Xml Serialization over Web API [Server]"); using WebApiServer server = new WebApiServer(8089); server.Open(); PrintSetup("The query service is ready."); WaitForEnterKey(); }
private static void Main() { Title("JSON Serialization over Web API async [Server]"); using var webServer = new WebApiServer(8089); webServer.Open(); PrintServerReady(); WaitForEnterKey(); }
static void Main(string[] args) { using (var server = new WebApiServer(8089)) { server.Open(); Console.WriteLine("The query service is ready."); Console.WriteLine("Press <ENTER> to terminate service."); Console.WriteLine(); Console.ReadLine(); } }