System.Net.Mail.SmtpAuthenticationManager.GetModules C# (CSharp) Method

GetModules() static private method

static private GetModules ( ) : ISmtpAuthenticationModule[]
return ISmtpAuthenticationModule[]
        internal static ISmtpAuthenticationModule[] GetModules()
        {
            lock (s_modules)
            {
                ISmtpAuthenticationModule[] copy = new ISmtpAuthenticationModule[s_modules.Count];
                s_modules.CopyTo(0, copy, 0, s_modules.Count);
                return copy;
            }
        }
    }

Usage Example

Esempio n. 1
0
 internal SmtpTransport(SmtpClient client) : this(client, SmtpAuthenticationManager.GetModules())
 {
 }