public void Start()
        {
            ParameterBus = BusConfigurator.ConfigureBus(MonitoredServices.ParameterService, (cfg, host) =>
            {
                cfg.ReceiveEndpoint("GetParameterQueue", ec => { ec.Consumer(() => new GetParameterRequestConsumer()); });
                cfg.ReceiveEndpoint(host, ec => { ec.Consumer(() => new GetParameterEventResponseConsumer()); });
                cfg.ReceiveEndpoint("SaveParameterQueue", ec => { ec.Consumer(() => new SaveParameterRequestConsumer()); });
                cfg.ReceiveEndpoint(host, ec => { ec.Consumer(() => new SaveParameterEventResponseConsumer()); });
            });

            ParameterBus.Start();
            ParameterRequestResponseHelper.Start();
        }
        public void Start()
        {
            containerBuilder = new ContainerBuilder();

            BusConfigurator.ConfigureBus(containerBuilder, MonitoredServices.ParameterService, (cfg, ctx) =>
            {
                cfg.ReceiveEndpoint("GetParameterQueue", ec => { ec.Consumer(() => new GetParameterRequestConsumer()); });
                cfg.ReceiveEndpoint(ec => { ec.Consumer(() => new GetParameterEventResponseConsumer()); });
                cfg.ReceiveEndpoint("SaveParameterQueue", ec => { ec.Consumer(() => new SaveParameterRequestConsumer()); });
                cfg.ReceiveEndpoint(ec => { ec.Consumer(() => new SaveParameterEventResponseConsumer()); });
            });

            var container = containerBuilder.Build();

            ParameterBus = container.Resolve <IBusControl>();
            ParameterBus.Start();
            ParameterRequestResponseHelper.Start();
        }