private void SearchManager_SearchIndexMessage(object source, SearchIndexEventArgs args)
        {
            // The whole index building process would take 20% (from 70 to 90) of the import process. Then the percent value here should be calculated based on 20%
            var percent = 70 + Convert.ToInt32(args.CompletedPercentage) * 2 / 10;

            _progressMessenger.AddProgressMessageText(args.Message, false, percent);
        }
示例#2
0
 protected virtual void OnSearchIndexMessage(object source, SearchIndexEventArgs args)
 {
     this._logger.Debug(string.Format("\"{0}\" - {1}%.", args.Message, Convert.ToInt32(args.CompletedPercentage).ToString()));
     if (this.SearchIndexMessage != null)
     {
         this.SearchIndexMessage(source, args);
     }
 }
 private void SearchManager_SearchIndexMessage(object source, SearchIndexEventArgs args)
 {
     // The whole index building process would take 20% (from 70 to 90) of the import process. Then the percent value here should be calculated based on 20%
     var percent = 70 + Convert.ToInt32(args.CompletedPercentage) * 2 / 10;
     //_progressMessenger.AddProgressMessageText(args.Message, false, percent);
 }