public static IMessageProcessor CreateEventSubscriber(TopicSubscription[] topicSubscriptions, string subscription, string consumerId, string[] handlerProviderNames, ConsumerConfig consumerConfig = null) { subscription = Configuration.Instance.FormatAppName(subscription); var handlerProvider = new EventSubscriberProvider(handlerProviderNames); var commandBus = GetCommandBus(); var messagePublisher = GetMessagePublisher(); var messageQueueClient = ObjectProviderFactory.GetService <IMessageQueueClient>(); var eventSubscriber = new EventSubscriber(messageQueueClient, handlerProvider, commandBus, messagePublisher, subscription, topicSubscriptions, consumerId, consumerConfig); return(eventSubscriber); }
public ICommitOffsetable StartSubscriptionClient(string topic, string subscriptionName, string consumerId, OnMessagesReceived onMessagesReceived, ConsumerConfig consumerConfig = null) { return(null); }
public ICommitOffsetable StartQueueClient(string commandQueueName, string consumerId, OnMessagesReceived onMessagesReceived, ConsumerConfig consumerConfig = null) { return(null); }
public IMessageConsumer StartSubscriptionClient(string[] topics, string subscriptionName, string consumerId, OnMessagesReceived onMessagesReceived, ConsumerConfig consumerConfig = null) { return(null); }