debug:增加测试kafka库代码

This commit is contained in:
hardstylewyl 2025-05-14 10:47:50 +08:00
parent 1dfe434aee
commit 71315a07fd

View File

@ -11,6 +11,11 @@ try
{ {
_BUGOptions.EnablePref = "on".Equals(args[0]); _BUGOptions.EnablePref = "on".Equals(args[0]);
Console.WriteLine($"是否启动优化模式:{_BUGOptions.EnablePref}"); Console.WriteLine($"是否启动优化模式:{_BUGOptions.EnablePref}");
if (_BUGOptions.EnablePref)
{
var loadSuccess = Confluent.Kafka.Library.Load(null);
Console.WriteLine($"加载{loadSuccess},版本号:{Confluent.Kafka.Library.VersionString}");
}
} }
builder builder
.AddConfigurationContainer() .AddConfigurationContainer()