mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-10 23:07:21 +00:00
Turned getter-like extension methods into extension properties (#1157)
This commit is contained in:
1 parent
0375318b1b
commit
f649febf88
286 files changed
+1379
-1109
No files matched your search
@@ -18,7 +18,7 @@ public static class MailboxTransportSecurityExtensions
|
||||
|
||||
extension(MailboxTransportSecurity transportSecurity)
|
||||
{
|
||||
public string GetName() => transportSecurity switch
|
||||
public string Name => transportSecurity switch
|
||||
{
|
||||
MailboxTransportSecurity.SSL_ON_CONNECT => TB("TLS from the start (usually port 993)"),
|
||||
MailboxTransportSecurity.STARTTLS => TB("STARTTLS (usually port 143)"),
|
||||
@@ -29,8 +29,8 @@ public static class MailboxTransportSecurityExtensions
|
||||
/// <summary>
|
||||
/// The port the encryption usually comes with.
|
||||
/// </summary>
|
||||
/// <returns>The port, or null when there is no usual one.</returns>
|
||||
public int? GetUsualPort() => transportSecurity switch
|
||||
/// <value>The port, or null when there is no usual one.</value>
|
||||
public int? UsualPort => transportSecurity switch
|
||||
{
|
||||
MailboxTransportSecurity.SSL_ON_CONNECT => SSL_ON_CONNECT_PORT,
|
||||
MailboxTransportSecurity.STARTTLS => STARTTLS_PORT,
|
||||
|
||||
Reference in new issue
Block a user