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