Exemplo n.º 1
0
        public TaskProvider(ITaskKeeper taskKeeper)
        {
            if (taskKeeper == null)
            {
                throw new ArgumentNullException("taskKeeper");
            }

            _taskKeeper = taskKeeper;
        }
Exemplo n.º 2
0
        public TaskProvider(ITaskKeeper taskKeeper)
        {
            if (taskKeeper == null)
            {
                throw new ArgumentNullException("taskKeeper");
            }

            _taskKeeper = taskKeeper;
        }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
        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;
        }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 9
0
 public GetAllProductsResponseHandler(ITaskKeeper <Product> taskKeeper)
 {
     _taskKeeper = taskKeeper;
 }
Exemplo n.º 10
0
 public TaskChecker(ITaskKeeper taskKeeper)
 {
     _taskKeeper           = taskKeeper;
     TaskProcessingTimeout = TimeSpan.FromMinutes(3);
 }
Exemplo n.º 11
0
 public GetAllProductsRequestHandler(IProducer producer, ITaskKeeper <Product> taskKeeper)
 {
     _producer   = producer;
     _taskKeeper = taskKeeper;
 }
Exemplo n.º 12
0
 public CreateProductResponseHandler(ITaskKeeper <Product> taskKeeper)
 {
     _taskKeeper = taskKeeper;
 }
 public ProductRequestGateway(IProducer producer, ITaskKeeper <Product> taskKeeper)
 {
     _producer   = producer;
     _taskKeeper = taskKeeper;
 }