Пример #1
0
        public static LamaConfiguration Current()
        {
            if (_current == null)
            {
                _current = new LamaConfiguration("local.settings.json");
            }

            return(_current);
        }
Пример #2
0
        internal void SetModel(LamaConfigurationModel configurationModel = null)
        {
            if (configurationModel == null)
            {
                _configurationModel = _configuration.Get <LamaConfigurationModel>();
            }
            else
            {
                _configurationModel = configurationModel;
            }

            _current = this;
        }