I have a few tasks that I handle on the startup of my WPF/MVVM application. Is there any reason I can't call these tasks from my app.xaml.cs class? Not sure if that goes against MVVM or if this is a best practise way to handle startup tasks.
Examples of the types of tasks i'll be calling:
I've tried it a few ways and each work, but I'm curious what standard people follow. I've experimented with the following.
I suggest you not to include your startup tasks in application make separate application in WPF/MVVM and create a separate windows service for your startup task and access this service in your application.