﻿// Decompiled with JetBrains decompiler
// Type: System.Net.Mail.SmtpReplyReader
// Assembly: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// MVID: 5ABD58FD-DF31-44FD-A492-63F2B47CC9AF
// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.dll

using System;
using System.Runtime;

namespace System.Net.Mail
{
  internal class SmtpReplyReader
  {
    private SmtpReplyReaderFactory reader;

    [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
    internal SmtpReplyReader(SmtpReplyReaderFactory reader)
    {
      this.reader = reader;
    }

    internal IAsyncResult BeginReadLines(AsyncCallback callback, object state)
    {
      return this.reader.BeginReadLines(this, callback, state);
    }

    internal IAsyncResult BeginReadLine(AsyncCallback callback, object state)
    {
      return this.reader.BeginReadLine(this, callback, state);
    }

    public void Close()
    {
      this.reader.Close(this);
    }

    internal LineInfo[] EndReadLines(IAsyncResult result)
    {
      return this.reader.EndReadLines(result);
    }

    internal LineInfo EndReadLine(IAsyncResult result)
    {
      return this.reader.EndReadLine(result);
    }

    internal LineInfo[] ReadLines()
    {
      return this.reader.ReadLines(this);
    }

    internal LineInfo ReadLine()
    {
      return this.reader.ReadLine(this);
    }
  }
}
