zoukankan      html  css  js  c++  java
  • webapi中的扩展点

    Extension Points

    Web API provides extension points for some parts of the routing process.

    InterfaceDescription
    IHttpControllerSelector Selects the controller.
    IHttpControllerTypeResolver Gets the list of controller types. The DefaultHttpControllerSelector chooses the controller type from this list.
    IAssembliesResolver Gets the list of project assemblies. The IHttpControllerTypeResolver interface uses this list to find the controller types.
    IHttpControllerActivator Creates new controller instances.
    IHttpActionSelector Selects the action.
    IHttpActionInvoker Invokes the action.

    To provide your own implementation for any of these interfaces, use the Services collection on the HttpConfiguration object:

    var config = GlobalConfiguration.Configuration;
    config.Services.Replace(typeof(IHttpControllerSelector), new MyControllerSelector(config));
  • 相关阅读:
    学习进度(十一)
    学习进度(十)
    人月神话阅读笔记1
    SQL SUM() 函数
    SQL GROUP BY 语句
    SQL HAVING 子句
    SQL UCASE() 函数
    SQL LCASE() 函数
    SQL MID() 函数
    SQL LEN() 函数
  • 原文地址:https://www.cnblogs.com/a14907/p/5099158.html
Copyright © 2011-2022 走看看