using System.IO;
namespace Ant.Service.Utilities
{
///
/// This class represents the Pop3 QUIT command.
///
internal sealed class QuitCommand : Pop3Command
{
///
/// Initializes a new instance of the class.
///
/// The stream.
public QuitCommand(Stream stream)
: base(stream, false, Pop3State.Transaction | Pop3State.Authorization) { }
///
/// Creates the Quit request message.
///
///
/// The byte[] containing the QUIT request message.
///
protected override byte[] CreateRequestMessage()
{
return GetRequestMessage(Pop3Commands.Quit);
}
}
}