コード例 #1
0
 private static void SetSslIgnoreErrorMode(IBugzillaClientConfiguration configuration)
 {
     if (configuration.IgnoreSSLCert)
     {
         ServicePointManager.ServerCertificateValidationCallback = delegate { return(true); };
     }
 }
コード例 #2
0
 public BugzillaClient(IBugzillaClientConfiguration configuration)
 {
     SetTlsVersion();
     SetSslIgnoreErrorMode(configuration);
     this._username = configuration.UserName;
     this._password = configuration.Password;
     Client         = new RestClient(configuration.Url);
 }
 public BugzillaClientFactory(IBugzillaClientConfiguration bugzillaClientConfiguration, ILogger logger)
 {
     _bugzillaClientConfiguration = bugzillaClientConfiguration;
     _logger = logger;
 }