Beispiel #1
0
        private IEncryptionProfile GetEncryptionProfile(EncryptionClassification encryptionClassification)
        {
            if (encryptionProfileManager.TryGetValue(encryptionClassification, out var encryptionProfile))
            {
                return(encryptionProfile);
            }

            throw new NotSupportedException();
        }
 bool IReadOnlyDictionary <EncryptionClassification, IEncryptionProfile> .TryGetValue(EncryptionClassification key, out IEncryptionProfile value)
 {
     return(dictionary.TryGetValue(key, out value));
 }
 IEncryptionProfile IReadOnlyDictionary <EncryptionClassification, IEncryptionProfile> .this[EncryptionClassification key] => dictionary[key];
 bool IReadOnlyDictionary <EncryptionClassification, IEncryptionProfile> .ContainsKey(EncryptionClassification key)
 {
     return(dictionary.ContainsKey(key));
 }
 public EncryptAttribute(EncryptionMethod encryptionMethod, EncryptionClassification encryptionClassification)
 {
     EncryptionMethod         = encryptionMethod;
     EncryptionClassification = encryptionClassification;
 }