public TaskMonitoringService(ILogger logger, IDictionary<string, Task> tasks, RepositoryFactory factory) { _repository = factory.Create(); _messengerService = new MessengerService(logger, factory); Logger = logger; Tasks = tasks; }
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; }
public MessengerService(ILogger logger, RepositoryFactory factory) { _logger = logger; _repository = factory.Create(); }