Skip to content

Commit 41978af

Browse files
committed
Documentation comment for the FTP requester #10
1 parent d2cca6a commit 41978af

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/AngleSharp.Io/Network/FtpRequester.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,17 @@
77
using System.Threading;
88
using System.Threading.Tasks;
99

10+
/// <summary>
11+
/// Requester to perform ftp:// requests.
12+
/// </summary>
1013
public class FtpRequester : IRequester
1114
{
15+
/// <summary>
16+
/// Performs an asynchronous request that can be cancelled.
17+
/// </summary>
18+
/// <param name="request">The options to consider.</param>
19+
/// <param name="cancel">The token for cancelling the task.</param>
20+
/// <returns>The task that will eventually give the response data.</returns>
1221
public async Task<IResponse> RequestAsync(IRequest request, CancellationToken cancel)
1322
{
1423
var requester = FtpWebRequest.Create(request.Address.Href) as FtpWebRequest;
@@ -32,6 +41,11 @@ public async Task<IResponse> RequestAsync(IRequest request, CancellationToken ca
3241
return default(IResponse);
3342
}
3443

44+
/// <summary>
45+
/// Checks if the given protocol is supported.
46+
/// </summary>
47+
/// <param name="protocol">The protocol to check for, e.g. ftp.</param>
48+
/// <returns>True if the protocol is supported, otherwise false.</returns>
3549
public Boolean SupportsProtocol(String protocol)
3650
{
3751
return !String.IsNullOrEmpty(protocol) && protocol.Equals(ProtocolNames.Ftp);

0 commit comments

Comments
 (0)