コード例 #1
0
 public NexposeSession(string host, int port = 3780, NexposeAPIVersion version = NexposeAPIVersion.v11)
 {
     this.Host       = host;
     this.Port       = port;
     this.APIVersion = version;
 }
コード例 #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);
        }
コード例 #3
0
 public NexposeSession(string host, int port = 3780, NexposeAPIVersion version = NexposeAPIVersion.v11)
 {
     this.Host = host;
     this.Port = port;
     this.APIVersion = version;
 }
コード例 #4
0
ファイル: NexposeSession.cs プロジェクト: v-ststee/Smker
        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);
        }