Advertisement
Guest User

Untitled

a guest
Jan 25th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1.  public JiraRestClient(string url, string username = null, string password = null, JiraRestClientSettings settings = null)
  2.         {
  3.             url = url.EndsWith("/") ? url : url += "/";
  4.  
  5.             _clientSettings = settings ?? new JiraRestClientSettings();
  6.             _restClient = new RestClient(url)
  7.             {
  8.                 Proxy = _clientSettings.Proxy
  9.             };
  10.  
  11.             if (!String.IsNullOrEmpty(username) && !String.IsNullOrEmpty(password))
  12.             {
  13.                 this._restClient.Authenticator = new HttpBasicAuthenticator(username, password);
  14.             }
  15.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement