Pop3.ReadResponseAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Pop3.dll (version 7.0.9147)
ReadResponseAsync(Object)
Begins asynchronous ReadResponse operation. Returns a single line of response of the POP3 server to the command.
Declaration
public Task<string> ReadResponseAsync(object state = null)
Parameters
Type | Name | Description |
---|---|---|
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Remarks
Use ReadResponse and Send
If the response is multiline, ReadResponse must be called multiple times until it returns null, which indicates an and of response.
If the response is single line, ReadResponse must be called only once.