protected virtual void Dispose()

in src/Common/Common.Api/PowerBIApiClient.cs [98:145]


        protected virtual void Dispose(bool disposing)
        {
            if (this.disposed)
            {
                return;
            }

            this.disposed = true;
            if (disposing)
            {
                // Free managed resources  
                if (this.Client != null)
                {
                    this.Client.Dispose();
                    this.Client = null;
                }

                if (this.Reports != null)
                {
                    this.Reports = null;
                }

                if (this.Workspaces != null)
                {
                    this.Workspaces = null;
                }

                if (this.Datasets != null)
                {
                    this.Datasets = null;
                }

                if (this.Admin != null)
                {
                    this.Admin = null;
                }

                if (this.Capacities != null)
                {
                    this.Capacities = null;
                }

                if (this.Dataflows != null)
                {
                    this.Dataflows = null;
                }
            }
        }