/// <summary> /// Initializes a new instance of the <see cref="LdapService{TUser}"/> class. /// </summary> /// <param name="config">The configuration.</param> /// <param name="logger">The logger.</param> public LdapService(ExtensionConfig config, ILogger <LdapService <TUser> > logger) { _logger = logger; _config = config.Connections; _config.ToList().ForEach(f => _ldapConnections.Add(f.FriendlyName, new LdapConnection { SecureSocketLayer = f.Ssl })); }
/// <summary> /// Initializes a new instance of the <see cref="LdapService{TUser}"/> class. /// </summary> /// <param name="config">The configuration.</param> /// <param name="logger">The logger.</param> public LdapService(ExtensionConfig config, ILogger <LdapService <TUser> > logger) { _logger = logger; _config = config.Connections.ToArray(); }