예제 #1
0
        private static IPrivateKeyProvider GetKeyProvider()
        {
            var result = new DefaultPrivateKeyProvider();

            result.Add(new AppSettingsPrivateKeyProvider());

            return(result);
        }
        private static IPrivateKeyProvider GetKeyProvider(EJsonConfigurationSource source)
        {
            var result = new DefaultPrivateKeyProvider();

            var configSection = (source)?.ConfigSection;

            if (configSection != null)
            {
                result.Add(new ConfigurationPrivateKeyProvider(configSection));
            }

            return(result);
        }