public void ScheduleBackgroundService(BackgroundServiceBase backgroundServiceBase) { new Thread(() => { backgroundServiceBase.Execute(); }).Start(); }
public void ScheduleBackgroundService(BackgroundServiceBase backgroundServiceBase) { Task.Run(() => backgroundServiceBase.Execute()); }
public void ScheduleBackgroundService(BackgroundServiceBase backgroundServiceBase) { (backgroundServiceBase as ISetBackgroundServiceProperties).SetLastActivationTime(DateTime.Now); var task = Task.Run(() => backgroundServiceBase.Execute()); }
public void ScheduleBackgroundService(BackgroundServiceBase backgroundServiceBase) { backgroundServiceBase.Execute(); }