Beispiel #1
0
 public EventsController(IServiceEvents serviceEvents, ILogger <EventsController> logger)
 {
     _serviceEvents = serviceEvents ??
                      throw new ArgumentNullException(nameof(serviceEvents));
     _logger = logger ??
               throw new ArgumentNullException(nameof(logger));
 }
 public MessageForwarderFactory(
     NotNullable<IMomRepository> momRepository, 
     NotNullable<IServiceEvents> mediator, 
     NotNullable<IQuotaFactory> quotaFactory)
 { 
     _momRepository = momRepository.Value;
     _mediator = mediator.Value;
     _quotaFactory = quotaFactory.Value;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="serviceEvents">ServiceEvents</param>
 /// <param name="listenerFactory">KafkaListener factory</param>
 /// <param name="serializer">Binary serializer</param>
 public KafkaHostListener(
     IServiceEvents serviceEvents,
     IKafkaListenerFactory listenerFactory,
     IBinarySerializer serializer)
 {
     _serviceEvents = serviceEvents;
     _listenerFactory = listenerFactory;
     _serializer = serializer;
 }
 public MessageForwardingService(
     NotNullable<IStringSerializer> messageSerializer, 
     NotNullable<IServiceEvents> hostMediator,
     NotNullable<IMessageForwarderFactory> messageForwarderFactory)
 {
     _messageSerializer = messageSerializer.Value;
     _messageForwarderFactory = messageForwarderFactory.Value;
     _forwarders = new List<IMessageForwarder>();
     _hostMediator = hostMediator.Value;
 }
 public MessageForwarder(
     NotNullOrWhiteSpaceString topic, 
     NotNullable<IMomRepository> momRepository,
     NotNullable<IServiceEvents> mediator,
     NotNullable<IQuota> quota)
 {
     _topic = topic;
     _momRepository = momRepository.Value;
     _mediator = mediator.Value;
     _quota = quota.Value;
 }
 public IncommingMessageService(IIncommingMessageRepository repository, IServiceEvents hostMediator)
 {
     _repository = repository;
     _hostMediator = hostMediator;
 }
 public MessageCleanerService(NotNullable<IServiceEvents> serviceEvents, NotNullable<IIncommingMessageRepository> repository)
 {
     serviceEvents.Value.SentIncommingMessageSequence.Subscribe(RemoveMessage);
     _repository = repository.Value;
     _serviceEvents = serviceEvents.Value;
 }