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(); }
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(); }