Defines configuration support for ASP.NET Web API.
예제 #1
0
        /// <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 List<Route>();
            _WebApiConfiguration = webApiConfiguration;
        }
예제 #2
0
        /// <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 List <Route>();
            _WebApiConfiguration = webApiConfiguration;
        }