/// <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); }
/// <summary> /// ���ÿ������Ҫ��IOC���� /// </summary> /// <param name="resolver"></param> public Configuration SetResolver(IDependencyResolver resolver) { DependencyResolver.SetResolver(resolver); return(this); }