Пример #1
0
        private ServiceImplementStub(IDataReceiver dataReceiver, Type serviceType, IRpcImplInstnce rpcImpl)
        {
            rpcImplInstance = rpcImpl;

            routingRule             = MetaData.GetServiceRoutingRule(serviceType);
            serviceMethodDispatcher = MetaData.GetServiceMethodDispatcher(serviceType);
            methodSerializer        = MetaData.GetMethodSerializer(serviceType);
            dataReceiver.RegisterImpl(this, MetaData.GetServiceId(serviceType));
        }
Пример #2
0
 public static void SetServiceRoutingRule(string serviceId, RoutingRule serviceMetaInfo)
 {
     ServiceIdToRoutingRule[serviceId] = serviceMetaInfo;
 }
Пример #3
0
 public ServiceDelegateStub(IDataSender dataSender, IMethodSerializer methodSerializer, RoutingRule routingRule)
 {
     this.dataSender       = dataSender;
     this.methodSerializer = methodSerializer;
     this.routingRule      = routingRule;
 }
Пример #4
0
 public static void SetServiceRoutingRule(string serviceId, RoutingRule serviceMetaInfo)
 {
     ServiceIdToRoutingRule[serviceId] = serviceMetaInfo;
 }