【发布时间】:2022-01-13 20:59:51
【问题描述】:
我正在开发一个围绕Binance's web socket stream 的网络套接字包装器。 System.IO.Pipelines 对我来说看起来很有趣,因为它 solves 的问题。
我很可能会采用以下实现之一:
- SignalR
- BotBuilder(不确定那个项目到底是什么)
- DotNet.Interactive.PowerShell
- a project that probably got inspired by Microsoft's implementation
我无法理解IDuplexPipe 和Pipe 之间的区别。
IDuplexPipe 是支持读写的类型的协定。例如,网络连接将由 IDuplexPipe 表示。
由于我正在处理的网络套接字包装器与币安的网络套接字流有关,我假设我需要IDuplexPipe?
SignalR 使用 IDuplexPipe,而 DotNet.Interactive.PowerShell 仅使用 Pipe 类。您能否通过现实生活中的示例说明这两者之间的区别是什么,因为我不太了解Microsoft's documentation 的含义。
【问题讨论】:
标签: c# .net-core websocket system.io.pipelines