Hi,
I want to configure a recurring job through hangfire, i have already created my job folloiwng the approach mentioned in following link.
https://aspnetboilerplate.com/Pages/Documents/Background-Jobs-And-Workers#create-a-background-job
I can call it from application service using following code, _backgroundJobManager.Enqueue<MortgageStatusService, int>(1);
May i know how i can configure it at the start of application so that it executes after every 15 minutes?
public class MortgageStatusService : BackgroundJob<int>, ITransientDependency { private readonly IRepository<CarMortgage> _carMortgageRepository; private readonly IRepository<CarMortgageLog> _carMortgageLogRepository; private readonly IUnitOfWorkManager _unitOfWorkManager;
public MortgageStatusService(
IRepository<CarMortgage> carMortgageRepository,
IRepository<CarMortgageLog> carMortgageLogRepository,
IUnitOfWorkManager unitOfWorkManager)
{
_carMortgageRepository = carMortgageRepository;
_carMortgageLogRepository = carMortgageLogRepository;
_unitOfWorkManager = unitOfWorkManager;
}
[UnitOfWork]
public override void Execute(int args)
{
SynchronizeData.Synchronize(_carMortgageRepository, _carMortgageLogRepository);
}
}
My application requirement is pretty basic, i want to use Rapid Application Development tool and feature wise i need Audit History, Permission Management, LDAP authentication and Hangfire for background jobs.
If by using .Net Framework i can avoid installing .Net Core in my production environment then it will be easier for me, otherwise i need to convince system admin to install it which is time consuming.
I am going to create a new project using "Asp.Net Core MVC & JQUERY" type, I want to know which .NET Framework version i should use? My concerns are following,
Are you going to support both frameworks in the furture or will be more inclined towards .Net Core?
Is there any limitation in Asp.Net Zero features if i create a project using .Net Framework 4.6.1?