MailKit.Net.Smtp.SmtpClient.SendCommand C# (CSharp) Method

SendCommand() private method

private SendCommand ( string command, CancellationToken cancellationToken ) : MailKit.Net.Smtp.SmtpResponse
command string
cancellationToken System.Threading.CancellationToken
return MailKit.Net.Smtp.SmtpResponse
		SmtpResponse SendCommand (string command, CancellationToken cancellationToken)
		{
			var bytes = Encoding.UTF8.GetBytes (command + "\r\n");

			Stream.Write (bytes, 0, bytes.Length, cancellationToken);
			Stream.Flush (cancellationToken);

			return Stream.ReadResponse (cancellationToken);
		}