I am using: Version="7.10.0" with Streaming Hub
server and client are wrapped in their own docker container (debian bookworm slim). When I run it on my local machine without Docker it works.
both apps (client and server) are created using dotnet publish (with release option)
When I invoke receiver.RegisterAtManagerAsync() on the server (sending to the client) I am facing an issue
fail: MagicOnion.Server.Binder.Internal.MagicOnionGrpcMethodHandler[91]
manager-1 | A hub method handler throws an exception occurred in RegisterAtManagerAsync
manager-1 | System.InvalidProgramException: Common Language Runtime detected an invalid program.
...
manager-1 | at MagicOnion.Server.Hubs.StreamingHubContext.g__Await|43_0(StreamingHubContext ctx, ValueTask value)
manager-1 | at MagicOnion.Server.Hubs.StreamingHubBase`2.ConsumeRequestQueueAsync(CancellationToken cancellationToken)
public async ValueTask OnRegisterAtManagerAsync()
{
await Task.CompletedTask;
// log if needed in the future
}
async with ValueTask should be allowed in Version 7?
Documentation of Client Results:
https://cysharp.github.io/MagicOnion/streaminghub/client-results
I am using: Version="7.10.0" with Streaming Hub
server and client are wrapped in their own docker container (debian bookworm slim). When I run it on my local machine without Docker it works.
both apps (client and server) are created using dotnet publish (with release option)
When I invoke receiver.RegisterAtManagerAsync() on the server (sending to the client) I am facing an issue
fail: MagicOnion.Server.Binder.Internal.MagicOnionGrpcMethodHandler[91]
manager-1 | A hub method handler throws an exception occurred in RegisterAtManagerAsync
manager-1 | System.InvalidProgramException: Common Language Runtime detected an invalid program.
...
manager-1 | at MagicOnion.Server.Hubs.StreamingHubContext.g__Await|43_0(StreamingHubContext ctx, ValueTask value)
manager-1 | at MagicOnion.Server.Hubs.StreamingHubBase`2.ConsumeRequestQueueAsync(CancellationToken cancellationToken)
async with ValueTask should be allowed in Version 7?
Documentation of Client Results:
https://cysharp.github.io/MagicOnion/streaminghub/client-results