In this phase, We want to implement Recurring Tasks of Background Processing. Hangfire is a popular example of this.
How to configure tasks in JSON config files should be like this:
public interface IRecurringBackgroundTask : IDisposable
{
public Task Process(CancellationToken cancellationToken = default);
public Task Start(CancellationToken cancellationToken = default);
public Task Stop(CancellationToken cancellationToken = default);
}
We must create a subclass of .NET built-in Background Service to implement Background Task Management.
Also, we need to log background tasks into a MongoDB repository.
In this phase, We want to implement Recurring Tasks of Background Processing. Hangfire is a popular example of this. How to configure tasks in JSON config files should be like this:
And interface:
We must create a subclass of .NET built-in Background Service to implement Background Task Management. Also, we need to log background tasks into a MongoDB repository.
The packages will be as follows:
uBeac.Core.BackgroundTasks
uBeac.Core.BackgroundTasks.Logging
uBeac.Core.BackgroundTasks.Logging.MongoDB