Пример #1
0
 /// <summary>
 /// 将log4net作为EventSourcing框架的Log记录工具
 /// </summary>
 public Configuration Log4Net()
 {
     DependencyResolver.Register <ILoggerFactory>(new Log4NetLoggerFactory(Configuration.Instance.Properties["log4netConfigFile"]));
     return(this);
 }
Пример #2
0
 /// <summary>
 /// 设置框架需要用到的Ioc容器
 /// </summary>
 /// <param name="resolver"></param>
 /// <returns></returns>
 public Configuration SetResolver(IDependencyResolver resolver)
 {
     DependencyResolver.SetResolver(resolver);
     return(this);
 }