public DatasetsClient(IPowerBiAuthentication bi, IRestClient client) { this._bi = bi; this._client = client; this._client.AddDefaultHeader("Authorization", _bi.GetAccessToken()); this._addresses = new PowerBiAddresses(); }
public GroupClient(IPowerBiAuthentication bi) { this._bi = bi; this._client = new RestClient("https://api.powerbi.com"); this._client.AddDefaultHeader("Authorization", _bi.GetAccessToken()); this._cancellationToken = new CancellationTokenSource(); }