MeGame.Network 1.0.0

dotnet add package MeGame.Network --version 1.0.0
                    
NuGet\Install-Package MeGame.Network -Version 1.0.0
                    
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="MeGame.Network" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MeGame.Network" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="MeGame.Network" />
                    
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 MeGame.Network --version 1.0.0
                    
#r "nuget: MeGame.Network, 1.0.0"
                    
#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 MeGame.Network@1.0.0
                    
#: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=MeGame.Network&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=MeGame.Network&version=1.0.0
                    
Install as a Cake Tool

BrokerClients

BrokerClients 是连接 qz-net Broker 的客户端库,提供以下能力:

  • 注册与调用远端 Action(指令/操作)
  • 与外部服务器集成(WebSocket/UDP 等)
  • 简单负载均衡与路由

安装

dotnet add package BrokerClients

或在 csproj 中添加:

<ItemGroup>
  <PackageReference Include="BrokerClients" Version="*" />
 </ItemGroup>

使用示例

using BrokerClients;

// 初始化客户端并连接 Broker
var client = new BrokerClient();
await client.ConnectAsync("ws://localhost:8080");

// 注册某个命令/动作
client.RegisterAction(cmd: 100, act: 1);

// 调用远端动作
var response = await client.InvokeAsync(cmd: 100, act: 1, payload: new { name = "Alice" });
Console.WriteLine($"Result: {response}");

注:以上 API 示例用于说明包用途,实际接口以当前仓库实现为准。

目标框架

  • net6.0
  • net7.0
  • net8.0

许可证与源代码

如需在 NuGet 上显示许可证与源码链接,可在 BrokerClients.csproj 中添加:

<PropertyGroup>
  <PackageLicenseExpression>MIT</PackageLicenseExpression>
  <RepositoryUrl>https://github.com/your/repo</RepositoryUrl>
  <RepositoryType>git</RepositoryType>
</PropertyGroup>

发布说明

  • 初始版本:提供基础客户端能力,支持多目标框架。
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 140 11/29/2025