Class Proxy
Simple class representing a Proxy configuration.
An instance of this class can be used through Proxy to instruct a LightstreamerClient to connect to the Lightstreamer Server passing through a proxy.
Inherited Members
Namespace: com.lightstreamer.client
Assembly: Lightstreamer.DotNetStandard.Client.dll
Syntax
public class Proxy
Constructors
| Edit this page View SourceProxy(string, string, int)
This constructor will call Proxy(string, string, int, string, string) specifying null user and null password.
Declaration
public Proxy(string type, string host, int port)
Parameters
| Type | Name | Description |
|---|---|---|
| string | type | the proxy type. Supported values are HTTP, SOCKS4 and SOCKS5. |
| string | host | the proxy host |
| int | port | the proxy port |
Proxy(string, string, int, string)
This constructor will call Proxy(string, string, int, string, string) specifying a null password.
Declaration
public Proxy(string type, string host, int port, string user)
Parameters
| Type | Name | Description |
|---|---|---|
| string | type | the proxy type. Supported values are HTTP, SOCKS4 and SOCKS5. |
| string | host | the proxy host |
| int | port | the proxy port |
| string | user | the user name to be used to validate against the proxy |
Proxy(string, string, int, string, string)
Creates a Proxy instance containing all the informations required by the LightstreamerClient
to connect to a Lightstreamer server passing through a proxy.
Once created the Proxy instance has to be passed to the connectionOptions
instance using the Proxy method.
Declaration
public Proxy(string type, string host, int port, string user, string password)
Parameters
| Type | Name | Description |
|---|---|---|
| string | type | the proxy type. Supported values are HTTP, SOCKS4 and SOCKS5. |
| string | host | the proxy host |
| int | port | the proxy port |
| string | user | the user name to be used to validate against the proxy |
| string | password | the password to be used to validate against the proxy |
Methods
| Edit this page View SourceEquals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
| Edit this page View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
| Edit this page View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |