Ftp.SiteAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9083)
SiteAsync(String, Object)
Begins asynchronous Site operation. Executes site-specific command and returns the response.
Declaration
public Task<string> SiteAsync(string command, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | command | Site-specific command. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<String> | Command-specific response. |
Remarks
Represents FTP SITE command.
Using SendCommand and ReadResponse method might be a better choice in some cases.