public NexposeSession(string host, int port = 3780, NexposeAPIVersion version = NexposeAPIVersion.v11)
 {
     this.Host       = host;
     this.Port       = port;
     this.APIVersion = version;
 }
Exemple #2
0
        public NexposeSession(string username, string password, string host, int port = 3780, NexposeAPIVersion version = NexposeAPIVersion.v11)
        {
            this.Host       = host;
            this.Port       = port;
            this.APIVersion = version;

            ServicePointManager.ServerCertificateValidationCallback = (s, cert, chain, ssl) => true;

            this.Authenticate(username, password);
        }
 public NexposeSession(string host, int port = 3780, NexposeAPIVersion version = NexposeAPIVersion.v11)
 {
     this.Host = host;
     this.Port = port;
     this.APIVersion = version;
 }
Exemple #4
0
        public NexposeSession(string username, string password, string host, int port = 3780, NexposeAPIVersion version = NexposeAPIVersion.v11)
        {
            this.Host       = host;
            this.Port       = port;
            this.APIVersion = version;

            this.Authenticate(username, password);
        }