Quick.UrlClient 2026.3.424

dotnet add package Quick.UrlClient --version 2026.3.424
                    
NuGet\Install-Package Quick.UrlClient -Version 2026.3.424
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Quick.UrlClient" Version="2026.3.424" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Quick.UrlClient" Version="2026.3.424" />
                    
Directory.Packages.props
<PackageReference Include="Quick.UrlClient" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Quick.UrlClient --version 2026.3.424
                    
#r "nuget: Quick.UrlClient, 2026.3.424"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Quick.UrlClient@2026.3.424
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Quick.UrlClient&version=2026.3.424
                    
Install as a Cake Addin
#tool nuget:?package=Quick.UrlClient&version=2026.3.424
                    
Install as a Cake Tool

Quick.UrlClient

一个通用根据URL得到连接客户端的库,支持TCP,命名管道、串口和WebSocket。

URL示例

  • TCP: tcp://127.0.0.1:3000
  • 命名管道: pipe://./PipeName
  • 串口: serial://./COM1?BaudRate=9600 | serial://./tty1?BaudRate=9600 | serial://./dev/tty1?BaudRate=9600
  • WebSocket: ws://127.0.0.1:3000/ws/qp

使用示例

using Quick.UrlClient;
using Quick.UrlClient.Pipe;
using Quick.UrlClient.SerialPort;
using Quick.UrlClient.Tcp;
using Quick.UrlClient.WebSocket;

//注册要使用的URL架构
TcpUrlClient.Register();
SerialPortUrlClient.Register();
PipeUrlClient.Register();
WebSocketUrlClient.Register();

var url = "serial://./COM1?BaudRate=9600";
//根据URL创建客户端
using (var urlClient = UrlClientFactory.Build(url))
{
    //打开连接
    urlClient.Open();
    //得到流读写数据
    using (var stream = urlClient.GetStream())
    {
        // 读写数据
    }
    //关闭
    urlClient.Close();
}
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Quick.UrlClient:

Package Downloads
Quick.UrlClient.WebSocket

Package Description

Quick.UrlClient.Pipe

Package Description

Quick.UrlClient.SerialPort

Package Description

Quick.UrlClient.Tcp

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.3.424 136 4/24/2026
2026.2.424 119 4/23/2026
2026.1.423 131 4/23/2026