NServiceBus.ConfigureRijndaelEncryptionService.ExtractDecryptionKeysFromConfigSection C# (CSharp) Method

ExtractDecryptionKeysFromConfigSection() static private method

static private ExtractDecryptionKeysFromConfigSection ( RijndaelEncryptionServiceConfig section ) : List
section RijndaelEncryptionServiceConfig
return List
        internal static List<byte[]> ExtractDecryptionKeysFromConfigSection(RijndaelEncryptionServiceConfig section)
        {
            var o = new List<byte[]>();
            o.Add(ParseKey(section.Key, section.KeyFormat));
            o.AddRange(section.ExpiredKeys
                .Cast<RijndaelExpiredKey>()
                .Select(x => ParseKey(x.Key, x.KeyFormat)));

            return o;
        }