public void Start()
 {
     try
     {
         var httpConfig = new HttpConfiguration();
         var apiConfig  = new ApiApplication(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);
     }
 }
Exemple #2
0
 protected void Application_Start(object sender, EventArgs e)
 {
     WebApiConfig.Configure();
 }