【问题标题】:NDJSON stream with an AutoRest generated C# ServiceClient带有 AutoRest 生成的 C# ServiceClient 的 NDJSON 流
【发布时间】:2017-10-27 13:32:47
【问题描述】:

使用 AutoRest,我通过流式传输 NDJSON 事件为支持长轮询类型操作的服务生成了 C# ServiceClient。

服务的 swagger 文档在路径中定义了一个 produces 元素:

"/apis/thisisastreamingendpoint": {
    produces: ["application/json;stream=watch"]

AutoRest 配置中是否有任何内容允许生成支持这种流式传输行为的客户端?

【问题讨论】:

    标签: c# autorest


    【解决方案1】:

    AutoRest 中不支持流式端点:https://github.com/Azure/autorest/issues/2650,尽管那里的团队正在考虑在未来为长时间运行的操作添加更好的支持,因此可能会添加它。

    【讨论】:

      猜你喜欢
      • 2018-11-06
      • 2019-10-17
      • 2021-05-13
      • 1970-01-01
      • 2018-07-27
      • 2018-02-24
      • 1970-01-01
      • 2021-06-05
      • 2016-11-05
      相关资源
      最近更新 更多