Search Results for

    Show / Hide Table of Contents

    Class Proxy

    Proxy utility methods.

    Inheritance
    System.Object
    Proxy
    Namespace: FM.LiveSwitch
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class Proxy : object

    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 null.

    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.

    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0