public void Unsubscribe <T, TH>(string queue = null) where T : EventBase where TH : IEventHandler <T> { if (queue == null) { _subscriptionManager.RemoveConsumer(new EventType(typeof(T)), new EventHandlerType(typeof(TH))); } else { _subscriptionManager.RemoveConsumer(queue, new EventType(typeof(T)), new EventHandlerType(typeof(TH))); } }