Skip to content

Commit 0ad020f

Browse files
authored
Restored interface methods on obsolete IBackgroundTaskQueue (#19223)
* Restore interface methods on obsolete IBackgroundTaskQueue. * Fixed typos in comment.
1 parent fc1455e commit 0ad020f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/Umbraco.Core/HostedServices/IBackgroundTaskQueue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Umbraco.Cms.Core.HostedServices;
99
public interface IBackgroundTaskQueue
1010
{
1111
/// <summary>
12-
/// Enqueue a work item to be executed on in the background.
12+
/// Enqueue a work item to be executed in the background.
1313
/// </summary>
1414
void QueueBackgroundWorkItem(Func<CancellationToken, Task> workItem);
1515

src/Umbraco.Infrastructure/HostedServices/IBackgroundTaskQueue.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,13 @@ namespace Umbraco.Cms.Infrastructure.HostedServices;
99
[Obsolete("This has been relocated into Umbraco.Cms.Core. This definition in Umbraco.Cms.Infrastructure is scheduled for removal in Umbraco 17.")]
1010
public interface IBackgroundTaskQueue : Core.HostedServices.IBackgroundTaskQueue
1111
{
12+
/// <summary>
13+
/// Enqueue a work item to be executed in the background.
14+
/// </summary>
15+
void QueueBackgroundWorkItem(Func<CancellationToken, Task> workItem);
16+
17+
/// <summary>
18+
/// Dequeue the first item on the queue.
19+
/// </summary>
20+
Task<Func<CancellationToken, Task>?> DequeueAsync(CancellationToken cancellationToken);
1221
}

0 commit comments

Comments
 (0)