コード例 #1
0
ファイル: TaskProvider.cs プロジェクト: GusLab/video-portal
        public TaskProvider(ITaskKeeper taskKeeper)
        {
            if (taskKeeper == null)
            {
                throw new ArgumentNullException("taskKeeper");
            }

            _taskKeeper = taskKeeper;
        }
コード例 #2
0
        public TaskProvider(ITaskKeeper taskKeeper)
        {
            if (taskKeeper == null)
            {
                throw new ArgumentNullException("taskKeeper");
            }

            _taskKeeper = taskKeeper;
        }
コード例 #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;
        }
コード例 #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;
        }
コード例 #5
0
ファイル: TaskChecker.cs プロジェクト: GusLab/video-portal
 public TaskChecker(ITaskKeeper taskKeeper)
 {
     _taskKeeper = taskKeeper;
     TaskProcessingTimeout = TimeSpan.FromMinutes(3);
 }
コード例 #6
0
 public GetProductByIdResponseHandler(ITaskKeeper <Product> taskKeeper)
 {
     _taskKeeper = taskKeeper;
 }
コード例 #7
0
 public GetProductByIdRequestHandler(ITaskKeeper <Product> taskKeeper, IProducer producer)
 {
     _taskKeeper = taskKeeper;
     _producer   = producer;
 }
コード例 #8
0
 public CreateProductRequestHandler(IProducer producer, ITaskKeeper <Product> taskKeeper)
 {
     _producer   = producer;
     _taskKeeper = taskKeeper;
 }
コード例 #9
0
 public GetAllProductsResponseHandler(ITaskKeeper <Product> taskKeeper)
 {
     _taskKeeper = taskKeeper;
 }
コード例 #10
0
 public TaskChecker(ITaskKeeper taskKeeper)
 {
     _taskKeeper           = taskKeeper;
     TaskProcessingTimeout = TimeSpan.FromMinutes(3);
 }
コード例 #11
0
 public GetAllProductsRequestHandler(IProducer producer, ITaskKeeper <Product> taskKeeper)
 {
     _producer   = producer;
     _taskKeeper = taskKeeper;
 }
コード例 #12
0
 public CreateProductResponseHandler(ITaskKeeper <Product> taskKeeper)
 {
     _taskKeeper = taskKeeper;
 }
コード例 #13
0
 public ProductRequestGateway(IProducer producer, ITaskKeeper <Product> taskKeeper)
 {
     _producer   = producer;
     _taskKeeper = taskKeeper;
 }