public AuthenticationLdapService(LdapOptions ldapOptions, IIdentityMvcService identityMvcService, ILogger <AuthenticationLdapService> logger) { _ldapOptions = ldapOptions; _connection = new LdapConnection(); _identityMvcService = identityMvcService; _logger = logger; }
public void InstallServices(IServiceCollection services, IConfiguration configuration) { var ldapOptions = new LdapOptions(); configuration.Bind(nameof(LdapOptions), ldapOptions); services.AddSingleton(ldapOptions); services.AddScoped <IAuthenticationLdapMvcService, AuthenticationLdapService>(); }