Example #1
0
 /// <summary>
 /// Called when [search index message].
 /// </summary>
 /// <param name="source">The source.</param>
 /// <param name="args">The <see cref="Mediachase.Search.SearchIndexEventArgs"/> instance containing the event data.</param>
 protected virtual void OnSearchIndexMessage(object source, SearchIndexEventArgs args)
 {
     Logger.Debug(String.Format("\"{0}\" - {1}%.", args.Message, Convert.ToInt32(args.CompletedPercentage).ToString()));
     if (this.SearchIndexMessage != null)
     {
         this.SearchIndexMessage(source, args);
     }
 }
Example #2
0
 /// <summary>
 /// Raises the search index event.
 /// </summary>
 /// <param name="source">The source.</param>
 /// <param name="args">The <see cref="Mediachase.Search.SearchIndexEventArgs"/> instance containing the event data.</param>
 public void RaiseSearchIndexEvent(object source, SearchIndexEventArgs args)
 {
     // Modify the percentage to take into account how many index builders we have
     args.CompletedPercentage = args.CompletedPercentage * (_IndexBuilderIndex / _IndexBuilderCount);
     OnSearchIndexMessage(source, args);
 }
Example #3
0
 /// <summary>
 /// Handles the SearchIndexMessage event of the _SearchManager control.
 /// </summary>
 /// <param name="source">The source of the event.</param>
 /// <param name="args">The <see cref="Mediachase.Search.SearchIndexEventArgs"/> instance containing the event data.</param>
 void _SearchManager_SearchIndexMessage(object source, SearchIndexEventArgs args)
 {
     _Log.Info(String.Format("Percent Complete: {0}%, {1}", Convert.ToInt32(args.CompletedPercentage), args.Message));
 }