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