stringindexFolder=@"c:\MyIndex\";stringdocumentsFolder=@"c:\MyDocuments\";// Creating an indexIndexindex=newIndex(indexFolder);// Subscribing to the eventindex.Events.StatusChanged+=(sender,args)=>{if(args.Status==IndexStatus.Ready||args.Status==IndexStatus.Failed){// A notification of the operation completion should be here}};// Setting the flag for asynchronous indexingIndexingOptionsoptions=newIndexingOptions();options.IsAsync=true;// Asynchronous indexing documents from the specified folder// The method terminates before the operation completesindex.Add(documentsFolder,options);