Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        private static void Main()
        {
            Title("JSON Serialization over Web API async [Server]");
            using var webServer = new WebApiServer(8089);
            webServer.Open();

            PrintServerReady();
            WaitForEnterKey();
        }
Exemplo n.º 3
0
        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();
            }
        }