예제 #1
0
 public MessageBusSubscriber(IMessagingTopicSubscriber topicSubscriber, ITopicRegistry topicRegistry,
                             IMessageSerDes messageSerDes,
                             ILogger <MessageBusSubscriber <TMessage> > logger)
 {
     _topicSubscriber = topicSubscriber;
     _topicRegistry   = topicRegistry;
     _messageSerDes   = messageSerDes;
     _logger          = logger;
 }
예제 #2
0
 public MessageBusSubscriber(IMessagingTransport messagingTransport, ITopicRegistry topicRegistry,
                             IMessageSerDes messageSerDes,
                             ILogger <MessageBusSubscriber> logger)
 {
     _messagingTransport = messagingTransport;
     _topicRegistry      = topicRegistry;
     _messageSerDes      = messageSerDes;
     _logger             = logger;
 }
예제 #3
0
 public HostedSubscriber(
     IMessageBus messageBus,
     IServiceProvider serviceProvider,
     MessagingContextAccessor messagingContextAccessor,
     ILogger <MessagingHost> logger,
     ITopicRegistry topicRegistry,
     ExecutionMonitor executionMonitor
     )
 {
     _messageBus               = messageBus;
     _serviceProvider          = serviceProvider;
     _messagingContextAccessor = messagingContextAccessor;
     _logger           = logger;
     _topicRegistry    = topicRegistry;
     _executionMonitor = executionMonitor;
 }
 public MessagingTopicSubscriberService(
     string topic,
     IMessageSerDes messageSerDes,
     IMessagingTopicSubscriber messagingTopicSubscriber,
     IServiceProvider serviceProvider,
     MessagingContextAccessor messagingContextAccessor,
     ITopicRegistry topicRegistry,
     ILogger <MessagingTopicSubscriberService> logger,
     MessagingSubscriberOptions subscriberOptions = null)
 {
     _messagingTopicSubscriber = messagingTopicSubscriber;
     _serviceProvider          = serviceProvider;
     _messagingContextAccessor = messagingContextAccessor;
     _messageSerDes            = messageSerDes;
     _logger            = logger;
     _subscriberOptions = subscriberOptions;
     _topic             = topicRegistry.GetTopicForName(topic);
 }
예제 #5
0
 public NBB4TopicRegistryDecorator(ITopicRegistry innerTopicRegistry)
 {
     this.innerTopicRegistry = innerTopicRegistry;
 }
 public MultiTenancyTopicRegistryDecorator(ITopicRegistry innerTopicRegistry, IOptions <TenancyHostingOptions> tenancyOptions)
 {
     _innerTopicRegistry = innerTopicRegistry;
     _tenancyOptions     = tenancyOptions;
 }
예제 #7
0
 public OpenTracingPublisherDecorator(IMessageBusPublisher inner, ITracer tracer, ITopicRegistry topicRegistry)
 {
     _inner         = inner;
     _tracer        = tracer;
     _topicRegistry = topicRegistry;
 }