Пример #1
0
 /// <summary>
 /// Add or update the app service using the specified instanciator
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="appName"></param>
 /// <param name="instanciator"></param>
 public void AddAppService <T>(string appName, Func <Type, T> instanciator)
 {
     ServiceProxyResponder.AddAppService <T>(appName, instanciator);
 }
Пример #2
0
 public void AddAppService(string appName, Type type, Func <object> instanciator)
 {
     ServiceProxyResponder.AddAppService(appName, type, instanciator);
 }
Пример #3
0
 public void AddAppServies(string appName, Incubator incubator)
 {
     ServiceProxyResponder.AddAppServices(appName, incubator);
 }
Пример #4
0
 public void AddAppService <T>(string appName, T instance)
 {
     ServiceProxyResponder.AddAppService <T>(appName, instance);
 }
Пример #5
0
 public void AddAppService <T>(string appName)
 {
     ServiceProxyResponder.AddAppService <T>(appName, (T)typeof(T).Construct());
 }
Пример #6
0
 public void AddCommonService <T>(T instance)
 {
     ServiceProxyResponder.AddCommonService <T>(instance);
 }
Пример #7
0
 public void AddCommonService <T>()
 {
     ServiceProxyResponder.AddCommonService <T>((T)typeof(T).Construct());
 }
Пример #8
0
 protected void SetServiceProxyResponder()
 {
     _serviceProxyResponder = new ServiceProxyResponder(GetCurrentConf(true), MainLogger);
     _serviceProxyResponder.ContentResponder = ContentResponder;
     AddResponder(_serviceProxyResponder);
 }