public ConsumerOptions(string topic, IBrokerRouter router) { Topic = topic; Router = router; PartitionWhitelist = new List<int>(); Log = new DefaultTraceLog(); TopicPartitionQueryTimeMs = (int)TimeSpan.FromMinutes(15).TotalMilliseconds; ConsumerBufferSize = DefaultMaxConsumerBufferSize; BackoffInterval = TimeSpan.FromMilliseconds(DefaultBackoffIntervalMS); }
public ConsumerOptions(string topic, IBrokerRouter router) { Topic = topic; Router = router; PartitionWhitelist = new List <int>(); Log = new DefaultTraceLog(); TopicPartitionQueryTimeMs = (int)TimeSpan.FromMinutes(15).TotalMilliseconds; ConsumerBufferSize = DefaultMaxConsumerBufferSize; BackoffInterval = TimeSpan.FromMilliseconds(DefaultBackoffIntervalMS); }