예제 #1
0
        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;
                }
            }
        }
예제 #2
0
 private void InitializeClients()
 {
     this.Reports    = new ReportsClient(this.Client);
     this.Workspaces = new WorkspacesClient(this.Client);
     this.Datasets   = new DatasetsClient(this.Client);
 }