Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 public DatasetsClient(IPowerBiAuthentication bi, IRestClient client)
 {
     this._bi     = bi;
     this._client = client;
     this._client.AddDefaultHeader("Authorization", _bi.GetAccessToken());
     this._addresses = new PowerBiAddresses();
 }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 4
0
 public DatasetsClient(IPowerBiAuthentication bi) : this(bi, new RestClient("https://api.powerbi.com"))
 {
 }