예제 #1
0
 private void BackUp1()
 {
     var config = new MyConfig("http://localhost:58674/");
     var server = new HttpSelfHostServer(config, new MyHttpMessageHandler());
     var task = server.OpenAsync();
     task.Wait();
     Console.WriteLine("Server is up and running");
     Console.ReadLine();
 }
예제 #2
0
        public static void Main(string[] args)
        {
            var config = new MyConfig("http://localhost:58674/");
            var server = new HttpSelfHostServer(config, new MyHttpMessageHandler());
            var task = server.OpenAsync();
            task.Wait();
            Console.WriteLine("Server is up and running");
            Console.ReadLine();

        }