Example #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);
        }
        internal ApplicationDataSettings(DataSettingsConfiguration configuration)
        {
            Configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));

            configuration.Register(this);
        }