using BackGround.Hangfire.Jobs.Waters; using Hangfire; using Infrastructure.Abstructions; using System; using System.Collections.Generic; using System.Text; namespace BackGround.Hangfire.JobRegisters.Water { public class ImportWaterJobRegister:ITransientDependency { private readonly IImportWaterJob _job; public ImportWaterJobRegister(IImportWaterJob job) { _job = job; } public void Register(Guid fileId,int categoryId) { BackgroundJob.Enqueue(() => _job.Execute(fileId,categoryId)); } } }