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>(); }
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>()); }