public void SubscribeQueue <T, TH>(string routingKey) where T : IIntegrationEvent where TH : IIntegrationQueueHandler <T> { var eventName = SubsManager.GetEventKey <T>(); DoInternalSubscription(eventName + "." + routingKey); SubsManager.AddSubscriptionQueue <T, TH>(eventName + "." + routingKey); StartBasicConsume(); }
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(); }