NoopCommand.cs 836 B

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