예제 #1
0
 /// <summary>
 /// �Զ�ע��Ĭ�ϵ������Service, Repository, Component
 /// </summary>
 public void RegisterDefaultComponents(params Assembly[] assemblies)
 {
     DependencyResolver.RegisterTypes(TypeUtils.IsComponent, assemblies);
     DependencyResolver.RegisterTypes(TypeUtils.IsRepository, assemblies);
     DependencyResolver.RegisterTypes(TypeUtils.IsService, assemblies);
 }
예제 #2
0
 /// <summary>
 /// ���ÿ������Ҫ��IOC����
 /// </summary>
 /// <param name="resolver"></param>
 public Configuration SetResolver(IDependencyResolver resolver)
 {
     DependencyResolver.SetResolver(resolver);
     return(this);
 }