Ejemplo n.º 1
0
        public void SubscribeRpcServer <T, TR, TH>(string routingKey)
            where T : IIntegrationEventRpc
            where TR : IIntegrationEventReply
            where TH : IIntegrationRpcServerHandler <T, TR>
        {
            var eventName       = SubsManager.GetEventKey <T>();
            var eventNameResult = SubsManager.GetEventReplyKey <TR>();

            DoInternalSubscriptionRpc(eventName + "." + routingKey, eventNameResult + "." + routingKey);
            SubsManager.AddSubscriptionRpcServer <T, TR, TH>(eventName + "." + routingKey, eventNameResult + "." + routingKey);
            StartBasicConsume();
            //StartBasicConsumeReply();
        }