Exemplo n.º 1
0
 public KafkaOptions(params Uri[] kafkaServerUri)
 {
     KafkaServerUri = kafkaServerUri.ToList();
     KafkaConnectionFactory = new DefaultKafkaConnectionFactory();
     PartitionSelector = new DefaultPartitionSelector();
     Log = new DefaultTraceLog();
     ResponseTimeoutMs = DefaultResponseTimeout;
 }
Exemplo n.º 2
0
 public KafkaOptions(params Uri[] kafkaServerUri)
 {
     KafkaServerUri = kafkaServerUri.ToList();
     PartitionSelector = new DefaultPartitionSelector();
     Log = new DefaultTraceLog();
     KafkaConnectionFactory = new DefaultKafkaConnectionFactory();
     ResponseTimeoutMs = TimeSpan.FromMilliseconds(DefaultResponseTimeout);
     CacheExpiration = TimeSpan.FromMilliseconds(DefaultCacheExpirationTimeoutMS);
     RefreshMetadataTimeout = TimeSpan.FromMilliseconds(DefaultRefreshMetadataTimeout);
     MaxRetry = DefaultMaxRetry;
     StatisticsTrackerOptions = new StatisticsTrackerOptions();
 }