NetCheckMethod Class |
Namespace: Hellmade.Net
[SerializableAttribute] public class NetCheckMethod
The NetCheckMethod type exposes the following members.
Name | Description | |
---|---|---|
NetCheckMethod(String, String, HttpStatusCode) | Initializes a new instance of the NetCheckMethod class | |
NetCheckMethod(String, String, String, Boolean) | Initializes a new instance of the NetCheckMethod class | |
NetCheckMethod(String, String, NetCheckResponseType, HttpStatusCode, String) | Initializes a new instance of the NetCheckMethod class |
Name | Description | |
---|---|---|
Check |
Determines the internet connection status using the method's settings. Use GetCheckStatus after the check is finished to get the determined internet connection status
| |
Equals | (Overrides ObjectEquals(Object).) | |
GetCheckStatus |
Returns the determined internet connection status after the check.
| |
GetHashCode | (Overrides ObjectGetHashCode.) | |
ToString | (Overrides ObjectToString.) |
Name | Description | |
---|---|---|
expectedContent |
The response content is used as a response check. Whether the whole content needs to match, or just a part of it, depends on the selected response type. Check is done on trimmed content, therefore whitespaces, newlines and tabs are ignored.
| |
expectedHttpStatusCode |
The expected response from the HTTP request when target destination can succesfully be reached.Only applicable if HTTP status code is the selected response type
| |
id |
The ID of the method
| |
link |
The link the method uses for internet check
| |
responseType |
The response type that is used for checking for validity of the connection
|