protected DispatcherContext(string configDbConnectionString = null)
        {
            _dbContext = new DatabasesContext
            {
                IsInternalDispatcherContext = true,
                ConfigDbConnectionString    = configDbConnectionString
            };

            EventService             = new EventService(this);
            EventTypeService         = new EventTypeService(this);
            BulbService              = new BulbService(this);
            ComponentTypeService     = new ComponentTypeService(this);
            LogService               = new LogService(this);
            MetricService            = new MetricService(this);
            UnitTestTypeService      = new UnitTestTypeService(this);
            UnitTestService          = new UnitTestService(this);
            SubscriptionService      = new SubscriptionService(DbContext);
            PaymentService           = ConfigDbServicesHelper.GetPaymentService(DbContext);
            ComponentService         = new ComponentService(this);
            UserService              = new UserService(DbContext);
            AccountService           = ConfigDbServicesHelper.GetAccountService();
            AccountManagementService = ConfigDbServicesHelper.GetAccountManagementService(this);
            DatabaseService          = ConfigDbServicesHelper.GetDatabaseService();
        }