示例#1
0
文件: JobQueue.cs 项目: younes21/abp
    public JobQueue(
        IOptions <AbpBackgroundJobOptions> backgroundJobOptions,
        IOptions <AbpRabbitMqBackgroundJobOptions> rabbitMqAbpBackgroundJobOptions,
        IChannelPool channelPool,
        IRabbitMqSerializer serializer,
        IBackgroundJobExecuter jobExecuter,
        IServiceScopeFactory serviceScopeFactory,
        IExceptionNotifier exceptionNotifier)
    {
        AbpBackgroundJobOptions         = backgroundJobOptions.Value;
        AbpRabbitMqBackgroundJobOptions = rabbitMqAbpBackgroundJobOptions.Value;
        Serializer          = serializer;
        JobExecuter         = jobExecuter;
        ServiceScopeFactory = serviceScopeFactory;
        ExceptionNotifier   = exceptionNotifier;
        ChannelPool         = channelPool;

        JobConfiguration   = AbpBackgroundJobOptions.GetJob(typeof(TArgs));
        QueueConfiguration = GetOrCreateJobQueueConfiguration();

        Logger = NullLogger <JobQueue <TArgs> > .Instance;
    }
 public AbpDashboardOptionsProvider(IOptions <AbpBackgroundJobOptions> abpBackgroundJobOptions)
 {
     AbpBackgroundJobOptions = abpBackgroundJobOptions.Value;
 }
示例#3
0
    public BackgroundJobExecuter(IOptions <AbpBackgroundJobOptions> options)
    {
        Options = options.Value;

        Logger = NullLogger <BackgroundJobExecuter> .Instance;
    }