BackgroundTaskRunner - add Hosted option, refactor some tasks
Conflicts: src/Umbraco.Web/Scheduling/BackgroundTaskRunner.cs
This commit is contained in:
@@ -90,7 +90,8 @@ namespace Umbraco.Web.Scheduling
|
||||
_options = options;
|
||||
_logPrefix = "[" + name + "] ";
|
||||
|
||||
HostingEnvironment.RegisterObject(this);
|
||||
if (options.Hosted)
|
||||
HostingEnvironment.RegisterObject(this);
|
||||
|
||||
if (options.AutoStart)
|
||||
StartUp();
|
||||
|
||||
Reference in New Issue
Block a user