OperationFinished
EventHub.OperationFinished event
Occurs when an index operation is finished.
public event EventHandler<OperationFinishedEventArgs> OperationFinished;
Examples
The example demonstrates how to use the event.
string indexFolder = @"c:\MyIndex\";
string documentsFolder = @"c:\MyDocuments\";
// Creating an index
Index index = new Index(indexFolder);
// Subscribing to the event
index.Events.OperationFinished += (sender, args) =>
{
Console.WriteLine("Operation finished: " + args.OperationType);
Console.WriteLine("Message: " + args.Message);
Console.WriteLine("Index folder: " + args.IndexFolder);
Console.WriteLine("Time: " + args.Time);
};
// Indexing documents from the specified folder
index.Add(documentsFolder);
See Also
- class OperationFinishedEventArgs
- class EventHub
- namespace GroupDocs.Search.Events
- assembly GroupDocs.Search