RsetCommand.cs 838 B

12345678910111213141516171819202122232425262728
  1. using System.IO;
  2. namespace Ant.Service.Utilities
  3. {
  4. /// <summary>
  5. /// This command represents the Pop3 RSET command.
  6. /// </summary>
  7. internal sealed class RsetCommand : Pop3Command<Pop3Response>
  8. {
  9. /// <summary>
  10. /// Initializes a new instance of the <see cref="RsetCommand"/> class.
  11. /// </summary>
  12. /// <param name="stream">The stream.</param>
  13. public RsetCommand(Stream stream)
  14. : base(stream, false, Pop3State.Transaction) { }
  15. /// <summary>
  16. /// Creates the RSET request message.
  17. /// </summary>
  18. /// <returns>
  19. /// The byte[] containing the RSET request message.
  20. /// </returns>
  21. protected override byte[] CreateRequestMessage()
  22. {
  23. return GetRequestMessage(Pop3Commands.Rset);
  24. }
  25. }
  26. }