var loggerTemp = IocManager.Instance.Resolve<ILogger>(); loggerTemp.Error("loggerTemp test"); var logger = IocManager.Instance.IocContainer.Resolve<ILogger>(); logger.Error("logger test");
ILogger为using Castle.Core.Logging下的。两种都行。
var loggerTemp = IocManager.Instance.Resolve<ILogger>(); loggerTemp.Error("loggerTemp test"); var logger = IocManager.Instance.IocContainer.Resolve<ILogger>(); logger.Error("logger test");
ILogger为using Castle.Core.Logging下的。两种都行。