You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using BackGround.Hangfire.Jobs.UMEs;
|
|
|
|
|
using Hangfire;
|
|
|
|
|
using Infrastructure.Abstructions;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace BackGround.Hangfire.JobRegisters.UMEs
|
|
|
|
|
{
|
|
|
|
|
public class UMEImportJobRegister:ITransientDependency
|
|
|
|
|
{
|
|
|
|
|
private readonly ImportUMEsJob _job;
|
|
|
|
|
public UMEImportJobRegister(ImportUMEsJob job)
|
|
|
|
|
{
|
|
|
|
|
_job = job;
|
|
|
|
|
}
|
|
|
|
|
public void Register(Guid fileId)
|
|
|
|
|
{
|
|
|
|
|
BackgroundJob.Enqueue(() => _job.Execute(fileId));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|