摘要:
委托: 把方法当作参数进行传递 public delegate void AddDelegate(string name); public class Ad{ //addDelegate就是委托的一个实例,把方法当作参数进行传递进去,逻辑分离,解除耦合 public static void AddH 阅读全文
摘要:
1、在WebApiConfig中建立建立HttpControllerHandler和HttpControllerRouteHandler 并覆写它 public class SessionRouteHandler : HttpControllerHandler,IRequiresSessionSta 阅读全文