Class CProxy
A proxy that supports http(s) and socks4/4a/5 protocols, authorization and chaining.
Inheritance
Inherited Members
Namespace: RuriLib.Models
Assembly: RuriLib.dll
Syntax
public class CProxy
Constructors
| Improve this Doc View SourceCProxy()
Needed for NoSQL deserialization.
Declaration
public CProxy()
CProxy(String, ProxyType)
Creates a proxy given a string and a proxy type.
Declaration
public CProxy(string proxy, ProxyType type)
Parameters
Type | Name | Description |
---|---|---|
System.String | proxy | The unparsed proxy string |
Extreme.Net.ProxyType | type | The proxy type |
Properties
| Improve this Doc View SourceCfduid
The cfduid cookie from Cloudflare.
Declaration
[BsonIgnore]
public string Cfduid { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Clearance
The clearance cookie from Cloudflare.
Declaration
[BsonIgnore]
public string Clearance { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Country
The country of the proxy's ip.
Declaration
public string Country { get; set; }
Property Value
Type | Description |
---|---|
System.String |
HasNext
Whether the proxy has a successor in the Proxy Chain.
Declaration
[BsonIgnore]
public bool HasNext { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Hooked
The number of bots the proxy is hooked to.
Declaration
[BsonIgnore]
public int Hooked { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Host
The Host string parsed from the proxy.
Declaration
[BsonIgnore]
public string Host { get; }
Property Value
Type | Description |
---|---|
System.String |
Id
Needed for NoSQL storage.
Declaration
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
IsNumeric
Whether the proxy is numeric.
Declaration
[BsonIgnore]
public bool IsNumeric { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsValidNumeric
Whether the proxy is a valid numeric proxy.
Declaration
[BsonIgnore]
public bool IsValidNumeric { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LastChecked
When the proxy was last checked.
Declaration
public DateTime LastChecked { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
LastUsed
When the proxy was last used.
Declaration
public DateTime LastUsed { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
Next
The next proxy object in a Proxy Chain.
Declaration
public CProxy Next { get; set; }
Property Value
Type | Description |
---|---|
CProxy |
Password
The password used for authentication (empty if none).
Declaration
public string Password { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Ping
The response delay of the proxy.
Declaration
public int Ping { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Port
The Port string parsed from the proxy.
Declaration
[BsonIgnore]
public string Port { get; }
Property Value
Type | Description |
---|---|
System.String |
Proxy
The unparsed proxy string.
Declaration
public string Proxy { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Status
The status of the proxy.
Declaration
[BsonIgnore]
public Status Status { get; set; }
Property Value
Type | Description |
---|---|
Status |
Type
The type of proxy.
Declaration
public ProxyType Type { get; set; }
Property Value
Type | Description |
---|---|
Extreme.Net.ProxyType |
UsedAgo
How long ago the proxy was used.
Declaration
[BsonIgnore]
public TimeSpan UsedAgo { get; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
Username
The username used for authentication (empty if none).
Declaration
public string Username { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Uses
The number of times the proxy was used for a check.
Declaration
[BsonIgnore]
public int Uses { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Working
The Working Status of the proxy.
Declaration
public ProxyWorking Working { get; set; }
Property Value
Type | Description |
---|---|
ProxyWorking |
Methods
| Improve this Doc View SourceGetClient()
Gets the ProxyClient related to the specific proxy type.
Declaration
public ProxyClient GetClient()
Returns
Type | Description |
---|---|
Extreme.Net.ProxyClient | The ProxyClient to be used in a HttpRequest |
Parse(String)
Parses a CProxy object from an advanced string. Supports Proxy Chains.
Declaration
public CProxy Parse(string proxy)
Parameters
Type | Name | Description |
---|---|---|
System.String | proxy | The string to parse the proxy from |
Returns
Type | Description |
---|---|
CProxy | The parsed CProxy object |