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(); }
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(); }
public void SubscribeRpc <T, TR, TH>(string routingKey) where T : IIntegrationEvent where TR : IIntegrationEventReply where TH : IIntegrationRpcHandler <T, TR> { var eventName = SubsManager.GetEventKey <T>(); var eventNameResult = SubsManager.GetEventReplyKey <TR>(); Logger.LogDebug("SubscribeRpc: eventName: " + eventName + "." + routingKey + " eventNameResult: " + eventNameResult + "." + routingKey); DoInternalSubscriptionRpc(eventName + "." + routingKey, eventNameResult + "." + routingKey); SubsManager.AddSubscriptionRpc <T, TR, TH>(eventName + "." + routingKey, eventNameResult + "." + routingKey); StartBasicConsume(); StartBasicConsumeReply(); }