Пример #1
0
 public static IList<ILog> GetInstance()
 {
     logContains = new MYIoc.IocContains();
     //logContains.RegisterType<ILog, Log>();
     //logContains.RegisterType<ILog, LogToDb>();
     logContains.RegisterTypeFromConfig(string.Format("{0}MYLogIoc.config", Util.WebPathManager.ConfigsUrl));
     return logContains.Resolves<ILog>();
 }
Пример #2
0
 public static IList <ILog> GetInstance()
 {
     logContains = new MYIoc.IocContains();
     //logContains.RegisterType<ILog, Log>();
     //logContains.RegisterType<ILog, LogToDb>();
     logContains.RegisterTypeFromConfig(string.Format("{0}MYLogIoc.config", Util.WebPathManager.ConfigsUrl));
     return(logContains.Resolves <ILog>());
 }