From d7c3e5c6c609e9b7a17a446391f9173463edeecc Mon Sep 17 00:00:00 2001 From: maliming Date: Fri, 13 Oct 2023 10:41:08 +0800 Subject: [PATCH] Rename `IsLdaps ` to `GetLdapOverSsl`. --- .../Volo/Abp/Ldap/ILdapSettingProvider.cs | 2 ++ .../src/Volo.Abp.Ldap/Volo/Abp/Ldap/LdapSettingProvider.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.Ldap.Abstractions/Volo/Abp/Ldap/ILdapSettingProvider.cs b/framework/src/Volo.Abp.Ldap.Abstractions/Volo/Abp/Ldap/ILdapSettingProvider.cs index c7320a36fa..34e90cf915 100644 --- a/framework/src/Volo.Abp.Ldap.Abstractions/Volo/Abp/Ldap/ILdapSettingProvider.cs +++ b/framework/src/Volo.Abp.Ldap.Abstractions/Volo/Abp/Ldap/ILdapSettingProvider.cs @@ -4,6 +4,8 @@ namespace Volo.Abp.Ldap; public interface ILdapSettingProvider { + public Task GetLdapOverSsl(); + public Task GetServerHostAsync(); public Task GetServerPortAsync(); diff --git a/framework/src/Volo.Abp.Ldap/Volo/Abp/Ldap/LdapSettingProvider.cs b/framework/src/Volo.Abp.Ldap/Volo/Abp/Ldap/LdapSettingProvider.cs index 8299adc458..ac4a78cb5a 100644 --- a/framework/src/Volo.Abp.Ldap/Volo/Abp/Ldap/LdapSettingProvider.cs +++ b/framework/src/Volo.Abp.Ldap/Volo/Abp/Ldap/LdapSettingProvider.cs @@ -14,7 +14,7 @@ public class LdapSettingProvider : ILdapSettingProvider, ITransientDependency SettingProvider = settingProvider; } - public virtual async Task IsLdaps() + public virtual async Task GetLdapOverSsl() { return (await SettingProvider.GetOrNullAsync(LdapSettingNames.Ldaps))?.To() ?? default; }