Example #1
0
        public void InitializeConfig(string database)
        {
            var config = ConfigurationManager.Get(database);

            this.Config = config;

            this.IsEnabled = this.Config.Enabled;

            if (!this.IsEnabled)
            {
                return;
            }

            if (string.IsNullOrWhiteSpace(config.AuthenticationToken))
            {
                this.IsEnabled = false;
            }
        }
Example #2
0
        public void InitializeConfig(string database)
        {
            var config = ConfigurationManager.Get(database);

            this.Config = config;

            this.IsEnabled = this.Config.Enabled;

            if (!this.IsEnabled)
            {
                return;
            }

            if (string.IsNullOrWhiteSpace(config.Username) || string.IsNullOrWhiteSpace(config.Password))
            {
                this.IsEnabled = false;
            }
        }