MagicOnion

Unified Realtime/API framework for .NET platform and Unity.

MIT License

Stars
3.7K
Committers
44

Bot releases are hidden (Show)

MagicOnion -

Published by neuecc over 4 years ago

Changes

Add RedisGroupOptions #287
Fix a critical memory out-of-bounds accessing bug of UnsafeDirectBlitResolver #286
Update roslyn version of code generator

Fixes

Impemenets RedisGroup.GetMemberCountAsync

MagicOnion - 3.0.10

Published by neuecc over 4 years ago

Changes

Improvements and fixes

  • #279 Bump MessagePack from 2.1.80 to 2.1.90

New features

#274 MagicOnion.Server.Authentication (Preview)

MagicOnion.Server.Authentication package provides a simple authentication mechanism on MagicOnion. Currently, the package is marked as preview.

$ dotnet add package -v 3.0.10-preview MagicOnion.Server.Authentication

MagicOnion.Server.Authentication provides two API surfaces.

  • Fundamental attributes (e.g. AuthorizeAttribute, AllowAnonymousAttribute)
  • JWT-based authentication implementation framework

To use the framework, 3rd-party developers can implement JWT-based authentication with minimal effort. The developers just implement below interfaces.

  • MagicOnion.Server.Authentication.Jwt.IJwtAuthenticationProvider
  • System.Security.Principal.IIdentity
  • Application-specific JWT payload

Sample code: https://github.com/Cysharp/MagicOnion/tree/master/samples/JwtAuthentication

MagicOnion - 3.0.9

Published by neuecc over 4 years ago

Changes

Improvements and fixes

#269 Add NuGet package icon

#254 Add AssemblyDefinition for Unity package and organize MagicOnion, MagicOnion.Abstractions

⚠NOTE: If you installed the previous version in your project, delete existing MagicOnion package before upgrading.

  • Separate MagicOnion.Abstractions from MagicOnion in Unity project.
    • The soruce code structures are same as solution/projects for .NET (MagicOnion.sln).
  • Restore and separate MagicOnion extensions for Unity.
    • UnityDebugLogger and ChannelExtensions are removed at v3.0. But we did not intented to that.
    • Now, the classes are placed into MagicOnion.Unity directory.

#258 Bump MessagePack from 2.0.323 to 2.1.80

MagicOnion -

Published by neuecc almost 5 years ago

  • Fixed does not work SwaggerMiddleware on .NET Core 3.0, thanks @ktanakaj
  • Fixed does not work broadcast by RedisGroup
  • Fixed UnsafeDirectBlitResolver does not exists in Unity
  • Improved, moc uses ConsoleAppFramework https://github.com/Cysharp/ConsoleAppFramework/
MagicOnion -

Published by neuecc almost 5 years ago

abandoned.

MagicOnion -

Published by neuecc almost 5 years ago

This release only affects MSBuild.Tasks.
fixed can not use UnuseUnityAttr attribute.

MagicOnion - Ver 3.0.5

Published by neuecc almost 5 years ago

Same as (fixed) 3.0.4.
This release only affects MSBuild.Tasks.
(may) fixed build error on dotnet build when use with MessagePack.MSBuild.Tasks.

MagicOnion - Ver 3.0.4

Published by neuecc almost 5 years ago

This release only affects MSBuild.Tasks.

(may) fixed build error on dotnet build when use with MessagePack.MSBuild.Tasks.

MagicOnion - 3.0.3

Published by neuecc almost 5 years ago

This release fixes failed code-generator in 3.0.1 and 3.0.2.

  • MethodIdAttribute moved to MagicOnion.Abstractions
MagicOnion - 3.0.2

Published by neuecc almost 5 years ago

This release is only affected code-generator.

  • Fix get NuGet root path on Mac and Linux, thanks @honda-tatsuya
  • Improve generated code has been sorted, thanks @honda-tatsuya
MagicOnion -

Published by neuecc almost 5 years ago

This release is only affected code-generator.

  • Resolve NuGet dependency more correctly
  • Show warn message if generate result is empty
  • Fix separate file generation
MagicOnion - Ver 3.0.0

Published by neuecc almost 5 years ago

Update MessagePack-CSharp dependency to v2.
It causes many API breaking changes so jump major version to 3.

Improvements

  • Add MagicOnion.Generator .NET Core Tools package.
  • Add MagicOnion.MSBuild.Tasks package.
  • Improved lightweight code generator engine.

Breaking changes

  • Remove EmbeddedServices (Heartbeat, Ping).
  • MagicOnion.Hosting now targets .NET Core 3.1.
  • Decouple project dependency to MagicOnion and MagicOnion.Abstraction.
  • All IFormatterResolver apis changed to MessagePackSerializerOptions.
  • Compression follows MessagePackSerializerOptions(no use LZ4 in default).
MagicOnion - 2.7.1

Published by mayuki almost 5 years ago

Fixes

  • #238: ImmutableArrayGroup and ConcurrentDictionaryGroup don't work as expected.
MagicOnion - 2.7.0

Published by mayuki almost 5 years ago

Improvements

  • #231: Add support for IServiceLocator / IServiceProvider Scope.
  • #232: Create a filter instance via factory.
  • #233: Add Extensions to create a broadcaster from IGroup.

Breaking changes

  • Remove Register methods from IServiceLocator.
    • IServiceLocator is now provided for only resolving external types. MagicOnion doesn't register any service and types.
  • Change signature of IGroupRepositoryFactory method
    • IGroupRepository CreateRepository(IServiceLocator serviceLocator); -> IGroupRepository CreateRepository(IFormatterResolver formatterResolver, IMagicOnionLogger logger, IServiceLocator serviceLocator);
  • OpenTelemetryCollectorFilterAttribute has been changed to IMagicOnionFilterFactory implementation.
    • options.Service.GlobalFilters.Add<OpenTelemetryCollectorFilterAttribute>(); -> options.Service.GlobalFilters.Add(new OpenTelemetryCollectorFilterAttribute());
MagicOnion - 2.6.4

Published by neuecc almost 5 years ago

Improvements

  • #215: OpenTelemetry upgrade to 0.2.0-alpha.40 (Thanks @marekhanzlik)
  • #229: Use SlnMerge instead of SolutionFileProecssor
  • #224: Improve developer experience
  • #218: Hide a invoke filter helper method in a stack trace

Fixes

  • #209: Typo in MessagePack.UnityShims (Thanks @alfeg)
  • #210: Fix logging configurations.
  • #217: Client name is derived from original interface name without 'I' prefix. (Issue #191)
  • #230: Hides generated-types from building MagicOnion service definitions. (Issue #225)
MagicOnion - Ver 2.6.3

Published by neuecc about 5 years ago

Support F# #207, thanks @Zymlex, @ForNeVeR

MagicOnion - Ver 2.6.2

Published by neuecc about 5 years ago

Fix compatibility with Microsoft.Extensions.Hosting 3.0.0 #202

MagicOnion - Ver 2.6.1

Published by neuecc about 5 years ago

Add StreamingHub.BroadcastTo/BroadcastToSelf

MagicOnion - Ver 2.4.0

Published by neuecc about 5 years ago

  • Update gRPC dependency(2.23.0) both server and Unity
    • braking changes, removed System.Interactive.Async dependency
  • Improve Filter APIs, support DI etc. #187
    • breaking changes, Filter API changed to public override async ValueTask Invoke(ServiceContext context, Func<ServiceContext, Task> next)
  • Improve Options configuration. #182
  • Add RequestContext.SetRequestMutator/SetResponseMutator
MagicOnion - Ver 2.3.0

Published by neuecc about 5 years ago

Add ClientFilter, see: https://github.com/Cysharp/MagicOnion#clientfilter
This change requires runtime update and code-generator update.