static void StartTopicWorkers(params string[] topics)
        {
            foreach (var item in topics)
            {
                var consumer = new TopicFactory(
                    ConnectionConfig.GetFactoryDefault(RegistrySettings.Reader.AmqpUri),
                    new JsonMessageSerializer(),
                    new ConsoleLog(),
                    registryClient.ServiceDefinition.Version);

                consumer.RetryMax = 10;
                consumer.StartConsumerInBackground<ServiceInfo>(item, new TopicConsumer());
                topicConsumers.Add(consumer);
            }
        }
        static TopicFactory StartStatsConsumer()
        {
            var consumer = new TopicFactory(
                ConnectionConfig.GetFactoryDefault(RegistrySettings.Reader.AmqpUri),
                new JsonMessageSerializer(),
                new ConsoleLog(),
                serviceDefinition.Version,
                RegistrySettings.RegistryStatsExchange);

            consumer.RetryMax = 10;
            consumer.StartConsumerInBackground("status", new StatsConsumer());

            return consumer;
        }