Ejemplo n.º 1
0
 public static void RegisterRawService(RpcServiceBase service)
 {
     lock (_syncRoot) {
         _services.Add(service.ServiceName, service);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 ///		注册派生自RpcSerivceBase的原生服务
 /// </summary>
 /// <param name="service">服务对象</param>
 /// <remarks>每个名字的服务对象仅能注册一次</remarks>
 public static void RegisterRawService(RpcServiceBase service)
 {
     lock (_syncRoot) {
         _dispatcher.RegisterService(service);
     }
 }