2 writes to parent
System (2)
net\System\Net\mail\SmtpReplyReaderFactory.cs (2)
380
this.
parent
= parent;
386
this.
parent
= parent;
21 references to parent
System (21)
net\System\Net\mail\SmtpReplyReaderFactory.cs (21)
393
if (
parent
.currentReader != caller ||
parent
.readState == ReadState.Done)
399
if (
parent
.byteBuffer == null)
401
parent
.byteBuffer = new byte[SmtpReplyReaderFactory.DefaultBufferSize];
404
System.Diagnostics.Debug.Assert(
parent
.readState == ReadState.Status0);
423
IAsyncResult result =
parent
.bufferedStream.BeginRead(
parent
.byteBuffer, 0,
parent
.byteBuffer.Length, readCallback, this);
428
read =
parent
.bufferedStream.EndRead(result);
440
thisPtr.read = thisPtr.
parent
.bufferedStream.EndRead(result);
465
int actual =
parent
.ProcessRead(
parent
.byteBuffer, start, read - start, true);
479
builder.Append(Encoding.UTF8.GetString(
parent
.byteBuffer, start, actual));
482
if (
parent
.readState == ReadState.Status0)
484
lines.Add(new LineInfo(
parent
.statusCode, builder.ToString(0, builder.Length - 2))); // return everything except CRLF
489
parent
.bufferedStream.Push(
parent
.byteBuffer, start, read - start);
494
else if (
parent
.readState == ReadState.Done)
496
lines.Add(new LineInfo(
parent
.statusCode, builder.ToString(0, builder.Length - 2))); // return everything except CRLF
497
parent
.bufferedStream.Push(
parent
.byteBuffer, start, read - start);