Class Proxy
Definições para conexão com servidor de proxy
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: Unimake.Business.DFe.Utility
Assembly: Unimake.Business.DFe.dll
Syntax
public static class Proxy
Methods
DefinirServidor(Boolean, String, String)
Definir servidor de Proxy
Declaration
public static IWebProxy DefinirServidor(bool detectarAutomaticamente = false, string usuario = "", string senha = "")
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | detectarAutomaticamente | Detectar proxy automaticamente? |
System.String | usuario | usuário de conexão do proxy |
System.String | senha | senha do usuário |
Returns
Type | Description |
---|---|
System.Net.IWebProxy |
Examples
//Detectar os dados de conexão do proxy automaticamente DefinirProxy(true);
//Passar os dados do proxy para conexão manualmente DefinirProxy(false, "user", "pass");