NServiceBus.ConfigureRijndaelEncryptionService.ExtractKeysFromConfigSection C# (CSharp) Method

ExtractKeysFromConfigSection() static private method

static private ExtractKeysFromConfigSection ( RijndaelEncryptionServiceConfig section ) : byte[]>.Dictionary
section RijndaelEncryptionServiceConfig
return byte[]>.Dictionary
        internal static Dictionary<string, byte[]> ExtractKeysFromConfigSection(RijndaelEncryptionServiceConfig section)
        {
            var result = new Dictionary<string, byte[]>();

            AddKeyIdentifierItems(section, result);

            foreach (RijndaelExpiredKey item in section.ExpiredKeys)
            {
                AddKeyIdentifierItems(item, result);
            }

            return result;
        }