2 instantiations of LineInfo
System.Net.Mail (2)
System\Net\Mail\SmtpReplyReaderFactory.cs (2)
308
lines.Add(new
LineInfo
(_statusCode, builder.ToString(0, builder.Length - 2))); // Exclude CRLF
320
lines!.Add(new
LineInfo
(_statusCode, builder.ToString(0, builder.Length - 2))); // return everything except CRLF
25 references to LineInfo
System.Net.Mail (25)
System\Net\Mail\SmtpCommands.cs (17)
18
internal static async Task<
LineInfo
> SendAsync<TIOAdapter>(SmtpConnection conn, CancellationToken cancellationToken = default)
28
internal static async Task<
LineInfo
[]> SendAsync<TIOAdapter>(SmtpConnection conn, CancellationToken cancellationToken = default)
38
internal static async Task<
LineInfo
> SendAsync<TIOAdapter>(SmtpConnection conn, string type, string message, CancellationToken cancellationToken = default)
42
LineInfo
[] lines = await ReadLinesCommand.SendAsync<TIOAdapter>(conn, cancellationToken).ConfigureAwait(false);
46
internal static async Task<
LineInfo
> SendAsync<TIOAdapter>(SmtpConnection conn, string? message, CancellationToken cancellationToken = default)
50
LineInfo
[] lines = await ReadLinesCommand.SendAsync<TIOAdapter>(conn, cancellationToken).ConfigureAwait(false);
54
private static
LineInfo
CheckResponse(
LineInfo
[] lines)
86
LineInfo
info = await CheckCommand.SendAsync<TIOAdapter>(conn, cancellationToken).ConfigureAwait(false);
129
LineInfo
info = await CheckCommand.SendAsync<TIOAdapter>(conn, cancellationToken).ConfigureAwait(false);
174
LineInfo
[] lines = await ReadLinesCommand.SendAsync<TIOAdapter>(conn, cancellationToken).ConfigureAwait(false);
178
private static string[] CheckResponse(
LineInfo
[] lines)
220
LineInfo
info = await CheckCommand.SendAsync<TIOAdapter>(conn, cancellationToken).ConfigureAwait(false);
263
LineInfo
info = await CheckCommand.SendAsync<TIOAdapter>(conn, cancellationToken).ConfigureAwait(false);
309
static async Task<
LineInfo
> SendAndCheck(SmtpConnection conn, CancellationToken cancellationToken)
311
LineInfo
info = await CheckCommand.SendAsync<TIOAdapter>(conn, cancellationToken).ConfigureAwait(false);
363
LineInfo
info = await CheckCommand.SendAsync<TIOAdapter>(conn, cancellationToken).ConfigureAwait(false);
System\Net\Mail\SmtpConnection.cs (1)
116
LineInfo
info = await _responseReader.GetNextReplyReader().ReadLineAsync<TIOAdapter>(cancellationToken).ConfigureAwait(false);
System\Net\Mail\SmtpReplyReader.cs (2)
31
internal Task<
LineInfo
[]> ReadLinesAsync<TIOAdapter>(CancellationToken cancellationToken) where TIOAdapter : IReadWriteAdapter
36
internal Task<
LineInfo
> ReadLineAsync<TIOAdapter>(CancellationToken cancellationToken) where TIOAdapter : IReadWriteAdapter
System\Net\Mail\SmtpReplyReaderFactory.cs (5)
259
internal async Task<
LineInfo
[]> ReadLinesAsync<TIOAdapter>(SmtpReplyReader caller, bool oneLine = false, CancellationToken cancellationToken = default) where TIOAdapter : IReadWriteAdapter
263
return Array.Empty<
LineInfo
>();
270
var lines = new List<
LineInfo
>();
328
internal async Task<
LineInfo
> ReadLineAsync<TIOAdapter>(SmtpReplyReader caller, CancellationToken cancellationToken) where TIOAdapter : IReadWriteAdapter
330
LineInfo
[] lines = await ReadLinesAsync<TIOAdapter>(caller, oneLine: true, cancellationToken).ConfigureAwait(false);