Class Proxy
Proxy utility methods.
Inheritance
System.Object
Proxy
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class Proxy
Methods
AuthCheck(String)
Checks if proxy authentication is required to access a given URL.
Declaration
public static Future<ProxyAuthCheckResult> AuthCheck(string url)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | The URL. |
Returns
Type | Description |
---|---|
Future<ProxyAuthCheckResult> |
ExportCredentials()
Exports the credentials to JSON.
Declaration
public static string ExportCredentials()
Returns
Type | Description |
---|---|
System.String | The credentials in JSON format. |
GetCredentials(String)
Gets the proxy credentials for the given proxy IP address.
Declaration
public static ProxyCredentials GetCredentials(string proxyIPAddress)
Parameters
Type | Name | Description |
---|---|---|
System.String | proxyIPAddress | The proxy IP address. |
Returns
Type | Description |
---|---|
ProxyCredentials | The proxy credentials, if they exist, or |
ImportCredentials(String)
Imports credentials from JSON.
Declaration
public static void ImportCredentials(string credentialsJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | credentialsJson | The credentials in JSON format. |
SetCredentials(String, ProxyCredentials)
Sets the proxy credentials for the given proxy IP address.
Declaration
public static void SetCredentials(string proxyIPAddress, ProxyCredentials proxyCredentials)
Parameters
Type | Name | Description |
---|---|---|
System.String | proxyIPAddress | The proxy IP address. |
ProxyCredentials | proxyCredentials | The proxy credentials. |
SetCredentials(String[], ProxyCredentials)
Sets the proxy credentials for the given proxy IP addresss.
Declaration
public static void SetCredentials(string[] proxyIPAddresses, ProxyCredentials proxyCredentials)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | proxyIPAddresses | The proxy IP addresses. |
ProxyCredentials | proxyCredentials | The proxy credentials. |