You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Adds Tasks and ValueTasks to the <see cref="QueuedHostedService"/>. <para/>
9
-
/// Must be Singleton IoC
8
+
/// Interface for queuing tasks and value tasks to be processed by the <see cref="QueuedHostedService"/>.
10
9
/// </summary>
10
+
/// <remarks>
11
+
/// This service must be registered as a singleton in the IoC container.
12
+
/// </remarks>
11
13
publicinterfaceIBackgroundQueue
12
14
{
15
+
/// <summary>
16
+
/// Queues a <see cref="ValueTask"/> to be executed by the background service.
17
+
/// </summary>
18
+
/// <param name="workItem">A function representing the work item, which accepts a <see cref="CancellationToken"/> and returns a <see cref="ValueTask"/>.</param>
19
+
/// <param name="cancellationToken">An optional token to cancel the operation.</param>
20
+
/// <returns>A <see cref="ValueTask"/> representing the asynchronous operation.</returns>
/// Queues a <see cref="Task"/> to be executed by the background service.
25
+
/// </summary>
26
+
/// <param name="workItem">A function representing the work item, which accepts a <see cref="CancellationToken"/> and returns a <see cref="Task"/>.</param>
27
+
/// <param name="cancellationToken">An optional token to cancel the operation.</param>
28
+
/// <returns>A <see cref="ValueTask"/> representing the asynchronous operation.</returns>
/// Dequeues a <see cref="ValueTask"/> from the queue for execution.
33
+
/// </summary>
34
+
/// <param name="cancellationToken">An optional token to cancel the operation.</param>
35
+
/// <returns>A <see cref="ValueTask"/> containing a function that represents the dequeued work item, which accepts a <see cref="CancellationToken"/> and returns a <see cref="ValueTask"/>.</returns>
/// Dequeues a <see cref="Task"/> from the queue for execution.
40
+
/// </summary>
41
+
/// <param name="cancellationToken">An optional token to cancel the operation.</param>
42
+
/// <returns>A <see cref="ValueTask"/> containing a function that represents the dequeued work item, which accepts a <see cref="CancellationToken"/> and returns a <see cref="Task"/>.</returns>
0 commit comments