Refactor scheduled tasks & publishing cancellation

This commit is contained in:
Shannon
2015-07-08 17:23:15 +02:00
parent 76a6f2d2d0
commit ccda1bdd73
7 changed files with 19 additions and 64 deletions

View File

@@ -96,21 +96,6 @@ namespace Umbraco.Web.Scheduling
StartUp();
}
/// <summary>
/// Returns the current cancellation token
/// </summary>
public CancellationToken CurrentCancellationToken
{
get
{
if (_tokenSource == null)
{
throw new InvalidOperationException("The token source has not been created which means the task runner has not been started");
}
return _tokenSource.Token;
}
}
/// <summary>
/// Gets the number of tasks in the queue.
/// </summary>