Beispiel #1
0
            protected override void OnInitialize(Westwind.Utilities.Configuration.IConfigurationProvider provider, string sectionName, object configData)
            {
                var providerJSON = new Westwind.Utilities.Configuration.JsonFileConfigurationProvider <Main>()
                {
                    JsonConfigurationFile = Settings.AppDataPath + this.GetType().FullName.Replace("+", ".") + ".json"
                };

                Provider = providerJSON;
                base.OnInitialize(providerJSON, sectionName, configData);
            }
Beispiel #2
0
            protected override Westwind.Utilities.Configuration.IConfigurationProvider OnCreateDefaultProvider(string sectionName, object configData)
            {
                var provider = new Westwind.Utilities.Configuration.JsonFileConfigurationProvider <Main>()
                {
                    JsonConfigurationFile = Settings.AppDataPath + this.GetType().FullName.Replace("+", ".") + ".json"
                };

                Provider = provider;

                return(provider);
            }