12 2017 档案
摘要:List list = new ArrayList(); //list.stream().filter((String s)->System.out.print(s);return s); String str="sadfasdf"; //str.length() Function func1= (s1)->s1....
阅读全文
摘要:2.拦截类 3. 4. 对EnableAop改进,支持自动获取相应的接口类,并传入拦截器数组 5.对于wcf服务无法调用控制器的拦截器(ActionFilter),所以可以调用该服务时就自动实现了拦截 6.下一步改进,在EnableAop()里可以无需传入类型参数,而代替的是IInterceptor
阅读全文
摘要:using System; using System.Linq; using Castle.DynamicProxy; namespace AopTest { class AopTest { static public void Test() { var proxyGenerator = new ProxyGenerato...
阅读全文
摘要:/// /// 方法帮助类 /// public class ActionHelper { /// /// 统一计算执行时间 /// /// 执行方法 /// public static int ComputeMethodCostMilliseconds(Ac...
阅读全文
摘要:/// /// 简单分页列表类 /// public class SimplePagedList { /// /// 每页页面大小 /// public int PageSize { get; set; } /// /// 页面总数 /// ...
阅读全文
摘要:/// /// 分页列表类 /// public class PagedList { /// /// 每页页面大小 /// public int PageSize { get; private set; } /// /// 页面总数 /// ...
阅读全文
摘要:using System.Runtime.Serialization; /// /// 通用分页请求类 /// [DataContract] public class PagedListModelReq : Request { /// /// Initializes a new instance of the...
阅读全文
摘要:1.初始化 2.在global.asax.cs 3.手工获取 4.参考 http://www.360doc.com/content/14/0620/09/10504424_388250715.shtml
阅读全文
摘要:using Autofac; using Microsoft.Practices.ServiceLocation; namespace Core.Common { /// /// 获取被Autofac注入的实例BeanFactory /// public class BeanFactory { /// /// 获取B...
阅读全文