public TenantIdHeaderMessagingTokenResolverTests() { _mockMessagingContextAccessor = new MessagingContextAccessor(); _headers = new Dictionary <string, string>(); var mockMessagingEnvelope = new MessagingEnvelope(_headers, new object()); var mockMessagingContext = new MessagingContext(mockMessagingEnvelope); _mockMessagingContextAccessor.MessagingContext = mockMessagingContext; }
public MessageBusSubscriberService( IMessageBusSubscriber <TMessage> messageBusSubscriber, IServiceProvider serviceProvider, MessagingContextAccessor messagingContextAccessor, ILogger <MessageBusSubscriberService <TMessage> > logger, MessagingSubscriberOptions subscriberOptions = null ) { _subscriberOptions = subscriberOptions; _messageBusSubscriber = messageBusSubscriber; _serviceProvider = serviceProvider; _messagingContextAccessor = messagingContextAccessor; _logger = logger; }
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); }
public MessagingContextBusPublisherDecorator(IMessageBusPublisher inner, MessagingContextAccessor messagingContextAccessor) { _inner = inner; _messagingContextAccessor = messagingContextAccessor; }
public TenantIdHeaderMessagingTokenResolver(MessagingContextAccessor messageContextAccessor, string headerKey) { _headerKey = headerKey; _messageContextAccessor = messageContextAccessor; }