BISharp.DashboardClient.DashboardClient C# (CSharp) Method

DashboardClient() public method

public DashboardClient ( IPowerBiAuthentication bi ) : BISharp.Addressing
bi IPowerBiAuthentication
return BISharp.Addressing
        public DashboardClient(IPowerBiAuthentication bi)
        {
            this._bi = bi;
            this._client = new RestClient("https://api.powerbi.com");
            this._client.AddDefaultHeader("Authorization", _bi.GetAccessToken());
            this._cancellationToken = new CancellationTokenSource();
            this._addresses = new PowerBiAddresses();
        }