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; } } }
internal SmtpTransport(SmtpClient client) : this(client, SmtpAuthenticationManager.GetModules()) { }