|
1 | 1 | using System; |
2 | 2 | using System.Net; |
3 | 3 |
|
4 | | -namespace NScrape |
5 | | -{ |
6 | | - /// <summary> |
7 | | - /// Represents a web client that handles cookies and redirection. |
8 | | - /// </summary> |
9 | | - public interface IWebClient |
10 | | - { |
11 | | - /// <include file='IWebClient.xml' path='/IWebClient/AddingCookie/*'/> |
| 4 | +namespace NScrape { |
| 5 | + /// <summary> |
| 6 | + /// Represents a web client that handles cookies and redirection. |
| 7 | + /// </summary> |
| 8 | + public interface IWebClient { |
| 9 | + /// <include file='IWebClient.xml' path='/IWebClient/AddingCookie/*'/> |
12 | 10 | event EventHandler<AddingCookieEventArgs> AddingCookie; |
13 | 11 |
|
14 | | - /// <include file='IWebClient.xml' path='/IWebClient/SendingRequest/*'/> |
15 | | - event EventHandler<SendingRequestEventArgs> SendingRequest; |
| 12 | + /// <include file='IWebClient.xml' path='/IWebClient/SendingRequest/*'/> |
| 13 | + event EventHandler<SendingRequestEventArgs> SendingRequest; |
16 | 14 |
|
17 | | - /// <include file='IWebClient.xml' path='/IWebClient/ProcessingResponse/*'/> |
18 | | - event EventHandler<ProcessingResponseEventArgs> ProcessingResponse; |
| 15 | + /// <include file='IWebClient.xml' path='/IWebClient/ProcessingResponse/*'/> |
| 16 | + event EventHandler<ProcessingResponseEventArgs> ProcessingResponse; |
19 | 17 |
|
20 | | - /// <include file='IWebClient.xml' path='/IWebClient/CookieJar/*'/> |
21 | | - CookieContainer CookieJar { get; } |
| 18 | + /// <include file='IWebClient.xml' path='/IWebClient/CookieJar/*'/> |
| 19 | + CookieContainer CookieJar { get; } |
22 | 20 |
|
23 | 21 | /// <include file='IWebClient.xml' path='/IWebClient/SendRequest_Uri/*'/> |
24 | | - WebResponse SendRequest(Uri destination); |
| 22 | + WebResponse SendRequest( Uri destination ); |
25 | 23 | /// <include file='IWebClient.xml' path='/IWebClient/SendRequest_Uri_bool/*'/> |
26 | | - WebResponse SendRequest(Uri destination, bool autoRedirect); |
| 24 | + WebResponse SendRequest( Uri destination, bool autoRedirect ); |
27 | 25 |
|
28 | 26 | /// <include file='IWebClient.xml' path='/IWebClient/SendRequest_Uri_string/*'/> |
29 | | - WebResponse SendRequest(Uri destination, string requestData); |
| 27 | + WebResponse SendRequest( Uri destination, string requestData ); |
30 | 28 |
|
31 | 29 | /// <include file='IWebClient.xml' path='/IWebClient/SendRequest_Uri_string_bool/*'/> |
32 | | - WebResponse SendRequest(Uri destination, string requestData, bool autoRedirect); |
| 30 | + WebResponse SendRequest( Uri destination, string requestData, bool autoRedirect ); |
33 | 31 |
|
34 | 32 | /// <include file='IWebClient.xml' path='/IWebClient/SendRequest_WebRequest/*'/> |
35 | | - WebResponse SendRequest(WebRequest webRequest); |
| 33 | + WebResponse SendRequest( WebRequest webRequest ); |
36 | 34 |
|
37 | 35 | /// <include file='IWebClient.xml' path='/IWebClient/UserAgent/*'/> |
38 | | - string UserAgent { get; set; } |
39 | | - } |
| 36 | + string UserAgent { get; set; } |
| 37 | + } |
40 | 38 | } |
41 | 39 |
|
0 commit comments