/// <summary> /// Gets a default instance of this class with meaningful default values set. /// </summary> /// <returns></returns> public static Saml20AttributeQuery GetDefault() { Saml20AttributeQuery result = new Saml20AttributeQuery(); SAML20FederationConfig config = SAML20FederationConfig.GetConfig(); if (config.ServiceProvider == null || string.IsNullOrEmpty(config.ServiceProvider.ID)) { throw new Saml20FormatException(Resources.ServiceProviderNotSet); } result.Issuer = config.ServiceProvider.ID; return(result); }
/// <summary> /// Gets a default instance of this class with meaningful default values set. /// </summary> /// <returns></returns> public static Saml20AttributeQuery GetDefault() { Saml20AttributeQuery result = new Saml20AttributeQuery(); SAML20FederationConfig config = SAML20FederationConfig.GetConfig(); if (config.ServiceProvider == null || string.IsNullOrEmpty(config.ServiceProvider.ID)) throw new Saml20FormatException(Resources.ServiceProviderNotSet); result.Issuer = config.ServiceProvider.ID; return result; }