Browse Source
Rename `IsLdaps ` to `GetLdapOverSsl`.
pull/17865/head
maliming
3 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
2 changed files with
3 additions and
1 deletions
-
framework/src/Volo.Abp.Ldap.Abstractions/Volo/Abp/Ldap/ILdapSettingProvider.cs
-
framework/src/Volo.Abp.Ldap/Volo/Abp/Ldap/LdapSettingProvider.cs
|
|
|
@ -4,6 +4,8 @@ namespace Volo.Abp.Ldap; |
|
|
|
|
|
|
|
public interface ILdapSettingProvider |
|
|
|
{ |
|
|
|
public Task<bool> GetLdapOverSsl(); |
|
|
|
|
|
|
|
public Task<string?> GetServerHostAsync(); |
|
|
|
|
|
|
|
public Task<int> GetServerPortAsync(); |
|
|
|
|
|
|
|
@ -14,7 +14,7 @@ public class LdapSettingProvider : ILdapSettingProvider, ITransientDependency |
|
|
|
SettingProvider = settingProvider; |
|
|
|
} |
|
|
|
|
|
|
|
public virtual async Task<bool> IsLdaps() |
|
|
|
public virtual async Task<bool> GetLdapOverSsl() |
|
|
|
{ |
|
|
|
return (await SettingProvider.GetOrNullAsync(LdapSettingNames.Ldaps))?.To<bool>() ?? default; |
|
|
|
} |
|
|
|
|