要引用这几个才有GetOwinContext与GetAutofacLifetimeScope

时间:2016-06-08 06:54:15   收藏:0   阅读:572
using Owin;
using Autofac;
using Autofac.Integration.Owin;
using System.Web;


var owin = this.Request.GetOwinContext();
            var scop = owin.GetAutofacLifetimeScope();
            scop.ResolveOptional()

 

原文:http://www.cnblogs.com/shiningrise/p/5568888.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!