Beispiel #1
0
 /// <summary>
 /// 构造注入
 /// </summary>
 /// <param name="serviceImpl"></param>
 public ClientClassHost(IServiceClassProvider serviceImpl)
 {
     this._serviceImpl = serviceImpl;
 }
Beispiel #2
0
 /// <summary>
 /// Setter注入点,也可使用自动属性方式
 /// </summary>
 /// <param name="serviceImpl"></param>
 public void Set_ServiceImpl(IServiceClassProvider serviceImpl)
 {
     this._serviceImpl = serviceImpl;
 }
Beispiel #3
0
 /// <summary>
 /// 接口注入,一般通过反射实现
 /// </summary>
 /// <param name="serviceClassProviderName"></param>
 public ClientClassHost(string serviceClassProviderName)
 {
     _serviceImpl = ReflectionFactory.MakeServiceClassProviderName(serviceClassProviderName);
 }