public TaskProvider(ITaskKeeper taskKeeper) { if (taskKeeper == null) { throw new ArgumentNullException("taskKeeper"); } _taskKeeper = taskKeeper; }
public TaskStateManager(ITaskKeeper taskKeeper, ITaskChecker taskChecker) { if (taskKeeper == null) { throw new ArgumentNullException("taskKeeper"); } UpdateInterval = TimeSpan.FromSeconds(10); _taskKeeper = taskKeeper; _taskChecker = taskChecker; _timer.Interval = 10000; _timer.Elapsed += (sender, args) => Update(); _state = TaskProviderState.Stopped; }
public TaskChecker(ITaskKeeper taskKeeper) { _taskKeeper = taskKeeper; TaskProcessingTimeout = TimeSpan.FromMinutes(3); }
public GetProductByIdResponseHandler(ITaskKeeper <Product> taskKeeper) { _taskKeeper = taskKeeper; }
public GetProductByIdRequestHandler(ITaskKeeper <Product> taskKeeper, IProducer producer) { _taskKeeper = taskKeeper; _producer = producer; }
public CreateProductRequestHandler(IProducer producer, ITaskKeeper <Product> taskKeeper) { _producer = producer; _taskKeeper = taskKeeper; }
public GetAllProductsResponseHandler(ITaskKeeper <Product> taskKeeper) { _taskKeeper = taskKeeper; }
public GetAllProductsRequestHandler(IProducer producer, ITaskKeeper <Product> taskKeeper) { _producer = producer; _taskKeeper = taskKeeper; }
public CreateProductResponseHandler(ITaskKeeper <Product> taskKeeper) { _taskKeeper = taskKeeper; }
public ProductRequestGateway(IProducer producer, ITaskKeeper <Product> taskKeeper) { _producer = producer; _taskKeeper = taskKeeper; }