This project is read-only.

Where do I instantiate a service?

Topics: Writing modules
Dec 9, 2012 at 8:03 PM

I am creating a custom part representing a vacancy. Vacancies will get their initial data from an XML file if it exists, and that data will be stored in the database and the XML file deleted. An external application will create the XML file periodically. I guess I need to create a service that will check for the presence of the file and transfer its contents into the database, but I am unsure about the best place to instantiate the service. Is the handler the best place to do this?

Dec 9, 2012 at 8:10 PM

Maybe a scehduled task using IBackgroundTask?

Dec 9, 2012 at 8:35 PM

Yes, that looks promising. Thank you.