/// <summary> /// Configures the library instance with an exposed <see cref="Saml2ConfigBuilder"/>. /// </summary> /// <param name="predicate">The configuration.</param> public static void Init(Action <Saml2ConfigBuilder> predicate) { var builder = new Saml2ConfigBuilder(); predicate(builder); var config = builder.Build(); Init(config); }
/// <summary> /// Configures the library instance with an exposed <see cref="Saml2ConfigBuilder"/>. /// </summary> /// <param name="predicate">The configuration.</param> public static void Init(Action <Saml2ConfigBuilder> predicate) { var builder = new Saml2ConfigBuilder(); predicate(builder); var config = builder.Build(); config.Validate(); _config = config; _config.IdentityProviders.Refresh(); }