Hi everyone, in the documentation is described how to create and insert a new Schedule Task. In the plugin case it is all clear.
https://docs.nopcommerce.com/en/developer/tutorials/scheduled-tasks.html
1. You create a class that implements the IScheduleTask interface and then
2. Using the IScheduleTaskService in the InstallAsync method of your plugin, you add a record into the data base with the task.
But where to call the IScheduleTaskService in the main app, not in a plugin. In other words where is the Install method (similarly to plugins) in the nopcommerce app.