Try our conversational search powered by Generative AI!

IRegisterImportExportEvents and obsolete DataImporter.Importing

Vote:
 

I'm currently trying to use the DataImporter.Importing events, however it's marked as obsolete. Which is find however the alternative IRegisterImportExportEvents is unlocatable. I've searched Google and EPi, not references. I'm tempted to ignore this error, however i would like a good excuse!

Warning CS0618 'DataImporter.Importing' is obsolete: 'Use IRegisterImportExportEvents.Importing to get hold of IDataImporter'

Warning CS0618 'DataImporter.ContentImporting' is obsolete: 'Use IRegisterImportExportEvents.Importing to get hold of IDataImporter and hookup instance events'

#149264
May 27, 2016 11:34
Vote:
 

The Obsolete message is unfortunately wrong here. The events are exposed on EPiServer.Enterprise.IDataImportEvents. The instance of the interface can be retreived from the IOC container

#149266
May 27, 2016 11:55
Vote:
 

Thanks Johan.

#149267
May 27, 2016 12:02
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.