Mezon.Net.Core 1.2.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Mezon.Net.Core --version 1.2.2
                    
NuGet\Install-Package Mezon.Net.Core -Version 1.2.2
                    
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="Mezon.Net.Core" Version="1.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mezon.Net.Core" Version="1.2.2" />
                    
Directory.Packages.props
<PackageReference Include="Mezon.Net.Core" />
                    
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 Mezon.Net.Core --version 1.2.2
                    
#r "nuget: Mezon.Net.Core, 1.2.2"
                    
#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 Mezon.Net.Core@1.2.2
                    
#: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=Mezon.Net.Core&version=1.2.2
                    
Install as a Cake Addin
#tool nuget:?package=Mezon.Net.Core&version=1.2.2
                    
Install as a Cake Tool

Mezon.Net

.NET client libraries for the Mezon platform — realtime chat, bots, and channel applications.

Packages

Package Audience Install
Mezon.Net.Sdk Bot / channel-app developers dotnet add package Mezon.Net.Sdk
Mezon.Net.Client UI / full engine access dotnet add package Mezon.Net.Client
Mezon.Net.Core Shared contracts & options transitive
Mezon.Net.Transport TCP / WebSocket transport transitive
Mezon.Net.Mmn MMN gRPC + ZK prove HTTP dotnet add package Mezon.Net.Mmn (also transitive from Sdk on net6.0+)
Mezon.Net.Sdk.Caching.Sqlite Optional SQLite message cache dotnet add package Mezon.Net.Sdk.Caching.Sqlite
Mezon.Net.Sdk.Caching.Redis Optional Redis/Valkey snapshot cache dotnet add package Mezon.Net.Sdk.Caching.Redis

Quickstart (Sdk)

await using var client = new Mezon.Net.Sdk.MezonClient(
    new Mezon.Net.Sdk.MezonClientOptions(botId, token));

client.ChannelMessageReceived += msg =>
{
    Console.WriteLine(msg.Content);
    return Task.CompletedTask;
};

await client.LoginAsync();
var channel = await client.GetChannelAsync(channelId);
await channel.SendAsync("Hello from Mezon.Net");

MMN (Mezon Mainnet)

Configure gRPC node and ZK prove endpoints on MezonClientOptions (defaults point at production Mezon endpoints):

options.MMNApiUrl = "https://dong.mezon.ai/mmn-api"; // gRPC
options.ZkApiUrl = "https://dong.mezon.ai/zk-api";   // POST /prove

After LoginAsync, the SDK initializes KeyGen, AddressMmn, and ZkProofs. Send tokens with SendTransferAsync(recipient, amount).

Use client.Mmn.NodeClient for low-level gRPC access and CryptoHelper for signing. On netstandard2.1, MMN APIs are unavailable (Sdk references Mezon.Net.Mmn only for net6.0+).

Rate limits

Socket traffic is throttled client-side (default 60/s, 500/min). Configure limits on MezonSocketClientOptions, and optionally handle delays:

options.DefaultRatelimitCallback = async info =>
{
    Console.WriteLine($"Delayed by {info.Bucket} for {info.ResetAfter}");

    // SDK wires SendBypassMessageAsync so warnings skip the transport limiter:
    if (info.SendBypassMessageAsync != null)
    {
        await info.SendBypassMessageAsync(clanId, channelId, $"Slow down — retry in {info.ResetAfter.TotalSeconds:0.#}s");
    }
};

RequestOptions.BypassRateLimiter skips client throttling for a single send; prefer IRateLimitInfo.SendBypassMessageAsync for warnings.

Documentation

See the GitHub repository for architecture notes, examples, and contribution guidelines.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  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 was computed.  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 is compatible.  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 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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Mezon.Net.Core:

Package Downloads
Mezon.Net.Transport

TCP and WebSocket network transporters for Mezon.Net clients.

Mezon.Net.Client

Mezon.Net socket engine — API-over-socket, realtime envelopes, events, and session lifecycle.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.0 0 9/14/2026
1.2.2 60 9/11/2026
1.2.1 261 8/5/2026
1.2.0 222 8/5/2026
1.1.0 217 8/4/2026
1.0.1 214 8/3/2026
1.0.0 199 8/3/2026