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