2 instantiations of SmtpConnection
System.Net.Mail (2)
System\Net\Mail\SmtpTransport.cs (2)
98_connection = new SmtpConnection(this, _client, _credentials, _authenticationModules); 124_connection = new SmtpConnection(this, _client, _credentials, _authenticationModules);
48 references to SmtpConnection
System.Net.Mail (48)
System\Net\Mail\SmtpCommands.cs (40)
19internal static IAsyncResult BeginSend(SmtpConnection conn, AsyncCallback? callback, object? state) 66SmtpConnection conn = (SmtpConnection)multiResult.Context; 86SmtpConnection conn = (SmtpConnection)multiResult.Context; 97internal static SmtpStatusCode Send(SmtpConnection conn, out string response) 113internal static IAsyncResult BeginSend(SmtpConnection conn, AsyncCallback? callback, object? state) 154SmtpConnection conn = (SmtpConnection)multiResult.Context; 174SmtpConnection conn = (SmtpConnection)multiResult.Context; 184internal static LineInfo[] Send(SmtpConnection conn) 193internal static IAsyncResult BeginSend(SmtpConnection conn, string type, string message, AsyncCallback? callback, object? state) 199internal static IAsyncResult BeginSend(SmtpConnection conn, string? message, AsyncCallback? callback, object? state) 219private static void PrepareCommand(SmtpConnection conn, string type, string message) 228private static void PrepareCommand(SmtpConnection conn, string? message) 234internal static LineInfo Send(SmtpConnection conn, string type, string message) 240internal static LineInfo Send(SmtpConnection conn, string? message) 249internal static IAsyncResult BeginSend(SmtpConnection conn, AsyncCallback? callback, object? state) 284private static void PrepareCommand(SmtpConnection conn) 294internal static void Send(SmtpConnection conn) 329private static void PrepareCommand(SmtpConnection conn) 338internal static void Send(SmtpConnection conn) 349internal static IAsyncResult BeginSend(SmtpConnection conn, string domain, AsyncCallback? callback, object? state) 382private static void PrepareCommand(SmtpConnection conn, string domain) 394internal static string[] Send(SmtpConnection conn, string domain) 403internal static IAsyncResult BeginSend(SmtpConnection conn, string domain, AsyncCallback? callback, object? state) 436private static void PrepareCommand(SmtpConnection conn, string domain) 448internal static void Send(SmtpConnection conn, string domain) 459internal static IAsyncResult BeginSend(SmtpConnection conn, AsyncCallback? callback, object? state) 494private static void PrepareCommand(SmtpConnection conn) 505internal static void Send(SmtpConnection conn) 516internal static IAsyncResult BeginSend(SmtpConnection conn, ReadOnlySpan<byte> command, MailAddress from, 553private static void PrepareCommand(SmtpConnection conn, ReadOnlySpan<byte> command, MailAddress from, bool allowUnicode) 569internal static void Send(SmtpConnection conn, ReadOnlySpan<byte> command, MailAddress from, bool allowUnicode) 580internal static IAsyncResult BeginSend(SmtpConnection conn, string to, AsyncCallback? callback, object? state) 622private static void PrepareCommand(SmtpConnection conn, string to) 635internal static bool Send(SmtpConnection conn, string to, out string response) 645private static void PrepareCommand(SmtpConnection conn) 655internal static void Send(SmtpConnection conn)
System\Net\Mail\SmtpConnection.cs (4)
346internal AuthenticateCallbackContext(SmtpConnection thisPtr, ISmtpAuthenticationModule module, NetworkCredential credential, string? spn, ChannelBinding? Token) 357internal readonly SmtpConnection _thisPtr; 388private readonly SmtpConnection _connection; 401internal ConnectAndHandshakeAsyncResult(SmtpConnection connection, string host, int port, ContextAwareResult outerResult, AsyncCallback? callback, object? state) :
System\Net\Mail\SmtpTransport.cs (4)
18private SmtpConnection? _connection; 146SmtpConnection.EndGetConnection(result); 240private readonly SmtpConnection _connection; 253internal SendMailAsyncResult(SmtpConnection connection, MailAddress from, MailAddressCollection toCollection,