public RestController(string strUserAgent = "BauRest", int intTimeOut = 20000, Authentication.IAuthenticator objAuthenticator = null)
 {
     // Asigna las propiedades
         UserAgent = strUserAgent;
         TimeOut = intTimeOut;
         Authenticator = objAuthenticator;
     // Inicializa los objetos
         Proxy = new Proxies.ProxyData(null, null, null, true);
 }
Beispiel #2
0
 public RestController(string strUserAgent = "BauRest", int intTimeOut = 20000,
                       Authentication.IAuthenticator objAuthenticator = null,
                       X509Certificate2 objCertificate = null)
 {         // Asigna las propiedades
     UserAgent     = strUserAgent;
     TimeOut       = intTimeOut;
     Authenticator = objAuthenticator;
     Certificate   = objCertificate;
     // Inicializa los objetos
     Proxy = new Proxies.ProxyData();
 }