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

            Logger.LogDebug("SubscribeRpcClient: eventNameResult: " + eventNameResult + "." + routingKey);
            DoInternalSubscriptionRpc(/*eventName + "." + routingKey,*/ eventNameResult + "." + routingKey);
            SubsManager.AddSubscriptionRpcClient <TR, TH>(/*eventName + "." + routingKey,*/ eventNameResult + "." + routingKey);
            StartBasicConsume();
            //StartBasicConsumeReply();
        }