add Background Task
This commit is contained in:
parent
75ddebba37
commit
3ae9be5869
6 changed files with 211 additions and 2 deletions
8
BMA.EHR.Insignia/Services/IBackgroundTaskQueue.cs
Normal file
8
BMA.EHR.Insignia/Services/IBackgroundTaskQueue.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
namespace BMA.EHR.Insignia.Service.Services
|
||||
{
|
||||
public interface IBackgroundTaskQueue
|
||||
{
|
||||
ValueTask QueueBackgroundWorkItemAsync(Func<CancellationToken, ValueTask> workItem);
|
||||
ValueTask<Func<CancellationToken, ValueTask>> DequeueAsync(CancellationToken cancellationToken);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue