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)); }
public static void SetServiceRoutingRule(string serviceId, RoutingRule serviceMetaInfo) { ServiceIdToRoutingRule[serviceId] = serviceMetaInfo; }
public ServiceDelegateStub(IDataSender dataSender, IMethodSerializer methodSerializer, RoutingRule routingRule) { this.dataSender = dataSender; this.methodSerializer = methodSerializer; this.routingRule = routingRule; }