public CustomHttpCliente(string uriBaseApi, UserLogin userLogin)
 {
     _uriBaseApi = uriBaseApi;
     HttpClient  = new HttpClient(new AuthenticationHandler(this, new HttpClientHandler()));
     User        = userLogin;
 }
Exemple #2
0
 public CustomHttpCliente(string uriBaseApi, UserLogin userLogin, bool ignoreAuth = false)
 {
     _uriBaseApi = uriBaseApi;
     HttpClient  = ignoreAuth ? new HttpClient() : new HttpClient(new AuthenticationHandler(this, new HttpClientHandler()));
     User        = userLogin;
 }