public OperateContext() { /*使用反射特别要注意的地方,会到网站根目录下去找*/ //string pLocal = Path.GetDirectoryName(Environment.CurrentDirectory); //Assembly asmb = Assembly.Load( "BLL"); //Type supType = asmb.GetType("BLL.BLLSession"); //IBLL.IBLLSession obj = Activator.CreateInstance(supType) as IBLL.IBLLSession; BLLSession = DI.SpringHelper.GetObject <IBLL.IBLLSession>("BLLSession"); }
public OperateContext() { /*使用反射特别要注意的地方,会到网站根目录下去找*/ //string pLocal = Path.GetDirectoryName(Environment.CurrentDirectory); //Assembly asmb = Assembly.Load( "BLL"); //Type supType = asmb.GetType("BLL.BLLSession"); //IBLL.IBLLSession obj = Activator.CreateInstance(supType) as IBLL.IBLLSession; BLLSession = DI.SpringHelper.GetObject<IBLL.IBLLSession>("BLLSession"); }
public OperateContext() { BLLSession = DI.SpringHelper.GetObject<IBLL.IBLLSession>("BLLSession"); }
public OperateContext() { BLLSession = DI.SpringHelper.GetObject <IBLL.IBLLSession>("BLLSession"); }
public OperateContext() { //BLLSession = DI.SpringHelper.GetObject<IBLL.IBLLSession>("BLLSession"); BLLSession = IOC.AutoFacHelper.Resolve <IBLL.IBLLSession>(); }