public TaskMonitoringService(ILogger logger, IDictionary<string, Task> tasks, RepositoryFactory factory)
        {
            _repository = factory.Create();
            _messengerService = new MessengerService(logger, factory);

            Logger = logger;
            Tasks = tasks;
        }
Ejemplo n.º 2
0
        public MessageProcessor(IJobActivator jobActivator, ISerializer serializer, ILogger logger, RepositoryFactory factory)
        {
            if (serializer == null) throw new ArgumentNullException(nameof(serializer));
            if (jobActivator == null) throw new ArgumentNullException(nameof(jobActivator));

            _serializer = serializer;
            _jobActivator = jobActivator;

            Repository = factory.Create();
            Service = new MessengerService(logger, factory);
            Logger = logger;
            
            Canceled = false;
        }
Ejemplo n.º 3
0
 public MessengerService(ILogger logger, RepositoryFactory factory)
 {
     _logger = logger;
     _repository = factory.Create();
 }