Esempio n. 1
0
 /// <summary>
 /// 注册服务集合
 /// </summary>
 private void RegistServices(ContainerBuilder builder)
 {
     _builder    = builder;
     _finder     = new WebFinder();
     _assemblies = _finder.GetAssemblies();
     RegistInfrastracture();
     RegistEventHandlers();
     RegistDependency();
 }
Esempio n. 2
0
 /// <summary>
 /// 引导
 /// </summary>
 public IServiceProvider Bootstrap()
 {
     _assemblies = _finder.GetAssemblies();
     return(Ioc.DefaultContainer.Register(_services, RegisterServices, _configs));
 }
 /// <summary>
 /// 引导
 /// </summary>
 public ContainerBuilder Bootstrap()
 {
     _assemblies = _finder.GetAssemblies();
     return(Ioc.DefaultContainer.CreateBuilder(_services, RegisterServices));
 }