Ejemplo n.º 1
0
        public ApplicationDataSettings <T> Settings <T>(bool isProtected, string key = null)
        {
            key = DataSettingsKey.KeyOrTypeName <T>(key);

            var configuration = new DataSettingsConfiguration(this, isProtected, key);

            var applicationDataSettings = new ApplicationDataSettings <T>(configuration);

            return(applicationDataSettings);
        }
Ejemplo n.º 2
0
        internal void RegisterSettings <T>(ApplicationDataSettings <T> applicationDataSettings)
        {
            var key = DataSettingsKey.GetFullPath(applicationDataSettings.Configuration.Data, applicationDataSettings.Configuration.Key);

            settingsDictionary.Add(key, applicationDataSettings);
        }
Ejemplo n.º 3
0
 internal void Register <T>(ApplicationDataSettings <T> applicationDataSettings)
 {
     ApplicationInfo.RegisterSettings(applicationDataSettings);
 }