public void CreateSubscription(RabbitEndpoint definition, bool start) { if (Subscriptions.HasSubscription(definition.QueueName)) { return; } var queueSubscription = new QueueSubscription(ProxyFactory, Dispatcher, definition); queueSubscription.Name = definition.QueueName; if (start) { Subscriptions.AddAndStartSubscription(queueSubscription); } else { Subscriptions.AddSubscription(queueSubscription); } }