public Task Start()
 {
     var selfHostConfiguration = new HttpSelfHostConfiguration(_serverUri);
     var apiServiceConfiguration = new ApiServiceConfiguration(selfHostConfiguration);
     apiServiceConfiguration.Configure();
     _host = new HttpSelfHostServer(selfHostConfiguration);
     return _host.OpenAsync();
 }
 public void Start()
 {
     try
     {
         var httpConfig = new HttpConfiguration();
         var apiConfig = new ApiServiceConfiguration(httpConfig);
         apiConfig.Configure();
         _server = new HttpServer(httpConfig);
     }
     catch (Exception e)
     {
         Console.WriteLine("Could not create server: {0}", e);
         Assert.Fail("Could not create server: {0}", e);
     }
 }