Migrating from the legacy .NET Framework I need to create a long time background process worker.
Looking at the documentation I found a BackgroundService
class, which is used for this kind of purpose. But I stumbled across two the same (for my point of view) methods ExecuteAsync()
and StartAsync()
Can somebody explain to me what the main difference between them? Is it some kind of segregation principle - we have a method for setting up data as the "constructor" and we have a method for actually doing things?