MyGit

4.0.1

Cysharp/MagicOnion

版本发布时间: 2020-11-12 18:01:22

Cysharp/MagicOnion最新发布版本:6.1.4(2024-07-17 15:51:31)

The Beginning of the C-Core removal journey

We moved the gRPC library used by MagicOnion from the C-core to the C# implementation. MagicOnion server is built on ASP.NET Core and Kestrel for high performance in combination with .NET 5.0.

Improvements

Breaking changes

MagicOnion.Hosting and MagicOnion-standalone server are now dropped

Use MagicOnion.Server and ASP.NET Core instead of that. In other words, MagicOnion server doesn't support non-.NET Core platform (e.g. .NET Framework, Unity, Mono ...).

Reorganize project structure

The server/client monolithic package has been decoupled.

Use IMagicOnionClientLogger instead of Grpc.Core.Logging.ILogger

Grpc.Core.Logging.ILogger API is part of C-core library.

Remove DefaultGroupRepositoryFactory

If you are using MagicOnion.Redis, use UseRedisGroupRepository(Action<RedisGroupOptions> configure, bool registerAsDefault = false) instead.

services.AddMagicOnion()
    .UseRedisGroupRepository(options =>
    {
        options.ConnectionMultiplexer = StackExchange.Redis.ConnectionMultiplexer.Connect("localhost:6379");
    });
// If you want to use Redis backplane by default, you can specify `registerAsDefault: true`.
services.AddMagicOnion()
    .UseRedisGroupRepository(options => { ... }, registerAsDefault: true);

Fixes from 4.0.0

相关地址:原始地址 下载(tar) 下载(zip)

1、 MagicOnion.Client.Unity.unitypackage 150.6KB

2、 moc.4.0.1.zip 65.27MB

查看:2020-11-12发行的版本