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 SetServiceMethodDispatcher(Type service, IServiceMethodDispatcher serviceMethodDispatcher) { TypeToServiceMethodDispatcher[service] = serviceMethodDispatcher; }