예제 #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);
 }