Example #1
0
        public UploadController(Client15Connector clientConnector, LocalTermStore localTermStore,
                                TermStore clientTermStore, ClientConnectorUploadOptions options)
        {
            this.clientConnector = clientConnector;
            this.localTermStore  = localTermStore;
            this.clientTermStore = clientTermStore;
            this.options         = options;

            this.queuedUploaders = new PriorityQueue <TaxonomyItemUploader>(new TaxonomyItemUploaderComparer());
        }
        public void Upload(LocalTermStore termStore, Guid overrideTermStoreId,
                           ClientConnectorUploadOptions options = null)
        {
            if (options == null)
            {
                options = new ClientConnectorUploadOptions();
            }

            TermStore clientTermStore  = this.FetchClientTermStore(overrideTermStoreId);
            var       uploadController = new UploadController(this, termStore, clientTermStore, options);

            uploadController.PerformUpload();
        }