BackgroundTaskRunner - add Hosted option, refactor some tasks

Conflicts:
	src/Umbraco.Web/Scheduling/BackgroundTaskRunner.cs
This commit is contained in:
Stephan
2015-07-10 15:52:58 +02:00
parent 0f56fa4baa
commit 34a9eef8b8
5 changed files with 27 additions and 24 deletions

View File

@@ -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();