Exemple #1
0
 public NetStream(
     string topic,
     NetStreamConfiguration configuration,
     IConsumerFactory consumerFactory,
     IProducerFactory producerFactory,
     ITopicCreator topicCreator)
 {
     _configuration   = configuration;
     _topic           = topic;
     _consumerFactory = consumerFactory;
     _producerFactory = producerFactory;
     _topicCreator    = topicCreator;
 }
Exemple #2
0
 public NetStream(
     string topic,
     NetStreamConfiguration <TKey, TMessage> configuration,
     IConsumer <TKey, TMessage> consumer,
     ITopicCreator topicCreator,
     ILog log,
     IConsumePipeline <TKey, TMessage> pipeline = null,
     Action <Exception> onError = null)
 {
     _configuration = configuration;
     _topic         = topic;
     _consumer      = consumer;
     _topicCreator  = topicCreator;
     _log           = log;
     _pipeline      = pipeline ?? new ConsumePipeline <TKey, TMessage>();
     if (onError != null)
     {
         _onError = onError;
     }
 }
 public TopicClientCreator(ITopicCreator creator)
 {
     _creator = creator;
 }