1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using System;
- using System.IO;
- namespace Ant.Service.Utilities
- {
-
-
-
- internal sealed class PassCommand : Pop3Command<Pop3Response>
- {
- private string _password;
-
-
-
-
-
- public PassCommand(Stream stream, string password)
- : base(stream, false, Pop3State.Authorization)
- {
- if (string.IsNullOrEmpty(password))
- {
- throw new ArgumentNullException("password");
- }
- _password = password;
- }
-
-
-
-
-
-
- protected override byte[] CreateRequestMessage()
- {
- return GetRequestMessage(Pop3Commands.Pass, _password, Pop3Commands.Crlf);
- }
- }
- }
|