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; } }