Exemplo n.º 1
0
        internal DataSettingsConfiguration(ApplicationData applicationData, bool isProtected, string key)
        {
            Data = applicationData;

            Key = key;

            Protected = isProtected;

            Extension = DataSettingsKey.GetExtension(Protected);

            Path = DataSettingsKey.GetFullPathWithExtension(applicationData, key, isProtected);
        }
Exemplo n.º 2
0
        internal DataSettingsConfiguration(ApplicationData applicationData, bool isProtected, string key)
        {
            if (string.IsNullOrEmpty(key))
            {
                throw new System.ArgumentException("message", nameof(key));
            }

            Data = applicationData ?? throw new System.ArgumentNullException(nameof(applicationData));

            Key = key;

            Protected = isProtected;

            Extension = DataSettingsKey.GetExtension(Protected);

            Path = DataSettingsKey.GetFullPathWithExtension(applicationData, key, isProtected);
        }