|
|
@@ -1,4 +1,5 @@ |
|
|
|
using System; |
|
|
|
using System.Collections.Concurrent; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
|
|
|
@@ -16,16 +17,21 @@ namespace DotNetCore.CAP |
|
|
|
/// Topic configuration parameters are specified via the "default.topic.config" sub-dictionary config parameter. |
|
|
|
/// </para> |
|
|
|
/// </summary> |
|
|
|
public readonly IDictionary<string, object> MainConfig; |
|
|
|
public readonly ConcurrentDictionary<string, object> MainConfig; |
|
|
|
|
|
|
|
private IEnumerable<KeyValuePair<string, object>> _kafkaConfig; |
|
|
|
|
|
|
|
|
|
|
|
public KafkaOptions() |
|
|
|
{ |
|
|
|
MainConfig = new Dictionary<string, object>(); |
|
|
|
MainConfig = new ConcurrentDictionary<string, object>(); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Producer connection pool size, default is 10 |
|
|
|
/// </summary> |
|
|
|
public int ConnectionPoolSize { get; set; } = 10; |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// The `bootstrap.servers` item config of <see cref="MainConfig" />. |
|
|
|
/// <para> |
|
|
|