public HostedServiceMessage(ISalesService salesService, IUserWithLessOfferService userWithLessOfferService,
                                    IConfiguration configuration, ILogger <HostedServiceMessage> logger,
                                    ILogMessage logMessage)
        {
            ServiceBusInfo serviceBusInfo = configuration.GetSection("ServiceBus").Get <ServiceBusInfo>();

            _salesService             = salesService;
            _userWithLessOfferService = userWithLessOfferService;
            _logMessage = logMessage;

            _logger = logger;

            _subscriptionClientUserWithLessOffer = new SubscriptionClient(serviceBusInfo.ConnectionString, "userwithlessoffer", "Dashboard");
            _subscriptionClientOrderChanged      = new SubscriptionClient(serviceBusInfo.ConnectionString, "orderchanged", "Dashboard");
            _subscriptionClientNewOrder          = new SubscriptionClient(serviceBusInfo.ConnectionString, "neworder", "Dashboard");
        }
        public LogMessage(IConfiguration configuration)
        {
            ServiceBusInfo serviceBusInfo = configuration.GetSection("ServiceBus").Get <ServiceBusInfo>();

            _connectionString = serviceBusInfo.ConnectionString;
        }