コード例 #1
0
        public void SaveThrowsErrorWhenKeyIdIsEmpty()
        {
            _configurationProvider.Create();
            _configurationProvider.Current.CredentialsType = CredentialsType.Basic;
            _configurationProvider.Current.KeySecret       = "secret";

            _configurationProvider.Save();
        }
コード例 #2
0
        public void OnEnabled()
        {
            _configProvider = ConfigurationProvider <CitiesStatsConfig> .Create(CitiesStatsConfig.StorageId, Name, () => new CitiesStatsConfig(true));

            _configProvider.LoadDefaultConfiguration();
            //_localizationProvider = new LocalizationProvider(Name, _modPath);
        }