Exemplo n.º 1
0
 private static IssuerNameRegistry GetIssuerNameRegistry(IssuerNameRegistryElement element)
 {
     try
     {
         Type type = string.IsNullOrEmpty(element.Type) ? DefaultIssuerNameRegistryType : Type.GetType(element.Type);
         return(TypeResolveHelper.Resolve <IssuerNameRegistry>(element, type));
     }
     catch (ArgumentException inner)
     {
         throw DiagnosticUtility.ThrowHelperConfigurationError(
                   element, ConfigurationStrings.IssuerNameRegistry, inner);
     }
 }