Merge remote-tracking branch 'origin/v8/bugfix/examine-reindex' into v8/8.6

(cherry picked from commit 8fddb52f9a)
This commit is contained in:
Claus
2020-09-22 11:42:44 +02:00
committed by Sebastiaan Janssen
parent 3950f3286e
commit 041d0469b6
5 changed files with 100 additions and 28 deletions

View File

@@ -0,0 +1,32 @@
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Umbraco.Web.Scheduling
{
/// <summary>
/// A simple task that executes a delegate synchronously
/// </summary>
internal class SimpleTask : IBackgroundTask
{
private readonly Action _action;
public SimpleTask(Action action)
{
_action = action;
}
public bool IsAsync => false;
public void Run() => _action();
public Task RunAsync(CancellationToken token)
{
throw new NotImplementedException();
}
public void Dispose()
{
}
}
}