有没有人知道我们可以用来对SumoLogic运行查询的C#客户端?我看到他们有一个Java Client,但是找不到对应的C#客户端。
发布于 2020-02-06 03:41:56
您可以使用SumoLogicMessageSender类。你可以找到使用这个类here。
但是,我不推荐使用GetResult(),就像它在原始代码中写的那样:
// this maintains synchronous behavior for single event scenarios.
this.SumoLogicMessageSender
.TrySend(bodyBuilder.ToString(), this.SourceName, this.SourceCategory, this.SourceHost)
.GetAwaiter()
.GetResult();https://stackoverflow.com/questions/40415054
复制相似问题