/// <summary>
        /// Update index in repository asynchronously
        /// </summary>
        public static void UpdateIndexInRepoAsynchronously()
        {
            //ExStart:UpdateIndexInRepoAsynchronously
            IndexRepository repository = new IndexRepository();

            repository.OperationFinished += Utilities.index_OperationFinished;

            repository.AddToRepository(Utilities.indexPath);
            repository.AddToRepository(Utilities.indexPath2);

            // Update all indexes in repository asynchronously
            repository.UpdateAsync();
            //ExEnd:UpdateIndexInRepoAsynchronously
        }
        /// <summary>
        /// Break Index Repository using Cancellation Object
        /// This method is supported by version 18.8 or greater
        /// </summary>
        public static void BreakIndexRepositoryUsingCancellationObject()
        {
            string          documentsFolder = Utilities.documentsPath;
            IndexRepository repository      = new IndexRepository();
            Index           index           = repository.Create();

            index.AddToIndex(documentsFolder);

            Cancellation cnc = new Cancellation();

            // Updating all indexes in repository
            repository.UpdateAsync(cnc);

            // Canceling all operations in index repository
            cnc.Cancel();
        }