Exemplo n.º 1
0
        public BaseSkeduler(IApplicationBatchManager applicationBatchManager,
                            IOptions <SkedulerSettings> options,
                            ILoggerFactory loggerFactory)
        {
            _batchActionDescription = (from item in applicationBatchManager.BatchActions
                                       from detail in item.ConfigureAttribute
                                       where detail.GetType().Name == nameof(BatchSkedulerAttribute)
                                       select item).ToList();

            _options       = options;
            _loggerFactory = loggerFactory;
        }
Exemplo n.º 2
0
        public BatchActionProvider(IApplicationBatchManager applicationBatchManager,
                                   IBatchInvokerProvider batchInvokerProvider)
        {
            if (applicationBatchManager == null)
            {
                throw new ArgumentNullException(nameof(applicationBatchManager));
            }

            if (batchInvokerProvider == null)
            {
                throw new ArgumentNullException(nameof(batchInvokerProvider));
            }

            _applicationBatchManager = applicationBatchManager;
            _batchInvokerProvider    = batchInvokerProvider;
        }