Exemplo n.º 1
0
 public LoadBackgroundService(ThreadResult result, Runner runner, IHostApplicationLifetime applicationLifetime, IOptions <AppConfig> appConfig, ILogger <LoadBackgroundService> logger, CompositeRequestMessageProvider compositeMessageProvider, IResultStore resultStore, IEnvironment environment, IConfiguration configuration)
 {
     _runner = runner;
     _applicationLifetime = applicationLifetime;
     _appConfig           = appConfig.Value;
     _logger = logger;
     _compositeMessageProvider = compositeMessageProvider;
     _threadResult             = result;
     _resultStore   = resultStore;
     _environment   = environment;
     _configuration = configuration;
 }
        public BatchProcessorClient(IResultStore resultStore
                                    , IWorkItemStore workItemStore
                                    , IWorkQueue queue)
        {
            Debug.Assert(resultStore != null, "resultStore can't be null");
            Debug.Assert(workItemStore != null, "workItemStore can't be null");
            Debug.Assert(queue != null, "queue can't be null");

            ResultStore   = resultStore;
            WorkItemStore = workItemStore;
            Queue         = queue;
        }