/// <summary> /// Initializes a new instance of the <see cref="WebApiManager" /> class. /// </summary> /// <param name="webApiConfiguration">The Web API configuration.</param> /// <exception cref="System.ArgumentNullException">webApiConfiguration</exception> public WebApiManager(WebApiConfiguration webApiConfiguration) { if (webApiConfiguration == null) { throw new ArgumentNullException("webApiConfiguration"); } _HttpRoutes = new Lazy <IList <Route> >(() => new List <Route>()); _WebApiConfiguration = webApiConfiguration; if (webApiConfiguration.IsSelfHosted) { _SelfHostServer = new Lazy <HttpSelfHostServer>(() => new HttpSelfHostServer(WebApiConfiguration.HttpSelfHostConfiguration)); } }
/// <summary> /// Initializes a new instance of the <see cref="WebApiManager" /> class. /// </summary> /// <param name="webApiConfiguration">The Web API configuration.</param> /// <exception cref="System.ArgumentNullException">webApiConfiguration</exception> public WebApiManager(WebApiConfiguration webApiConfiguration) { if (webApiConfiguration == null) { webApiConfiguration = new WebApiConfiguration(null, null); } _HttpRoutes = new Lazy <IList <Route> >(() => new List <Route>()); _WebApiConfiguration = webApiConfiguration; if (webApiConfiguration.IsSelfHosted) { _SelfHostServer = new Lazy <HttpSelfHostServer>(() => new HttpSelfHostServer(WebApiConfiguration.HttpSelfHostConfiguration)); } }
/// <summary> /// Initializes a new instance of the <see cref="WebApiManager" /> class. /// </summary> /// <param name="webApiConfiguration">The Web API configuration.</param> /// <exception cref="System.ArgumentNullException">webApiConfiguration</exception> public WebApiManager(WebApiConfiguration webApiConfiguration) { if (webApiConfiguration == null) { throw new ArgumentNullException("webApiConfiguration"); } _HttpRoutes = new Lazy<IList<Route>>(() => new List<Route>()); _WebApiConfiguration = webApiConfiguration; if (webApiConfiguration.IsSelfHosted) { _SelfHostServer = new Lazy<HttpSelfHostServer>(() => new HttpSelfHostServer(WebApiConfiguration.HttpSelfHostConfiguration)); } }
/// <summary> /// Initializes a new instance of the <see cref="WebApiManager" /> class. /// </summary> /// <param name="webApiConfiguration">The Web API configuration.</param> /// <exception cref="System.ArgumentNullException">webApiConfiguration</exception> public WebApiManager(WebApiConfiguration webApiConfiguration) { if (webApiConfiguration == null) { webApiConfiguration = new WebApiConfiguration(null, null); } _HttpRoutes = new Lazy<IList<Route>>(() => new List<Route>()); _WebApiConfiguration = webApiConfiguration; if (webApiConfiguration.IsSelfHosted) { _SelfHostServer = new Lazy<HttpSelfHostServer>(() => new HttpSelfHostServer(WebApiConfiguration.HttpSelfHostConfiguration)); } }