摘要:
代码:publicclassSingletonPerRequest{publicstaticSingletonPerRequestCurrent{get{return(HttpContext.Current.Items["SingletonPerRequest"]??(HttpContext.Current.Items["SingletonPerRequest"]=newSingletonPerRequest()))asSingletonPerRequest;}}}详见:http://dotnetslackers.com/community/blogs/ 阅读全文