-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grpc.Core will be deprecated soon #30
Comments
I tried to replace Grpc.Core with grpc-dotnet and couldn't get it to work. Unity lacks support for HTTP/2, which the old Grpc.Core provided through native code, but grpc-dotnet relies on .NET to do it and the version of .NET Unity runs is too old. So it seems we're stuck with Grpc.Core until Unity moves to at least .NET 6 |
At some point (planned for next major), Unity is going to move from Mono to the current .NET runtime. Maybe that will be enough? Otherwise there seem to be a few workarounds in that other GitHub thread. |
You can use YetAnotherHttpHandler in combination with grpc-dotnet. One limitation is that Unix Domain Sockets are not supported. |
Thanks for the tip! |
I got a simple hello world client going in Unity with YetAnotherHttpHandler and grpc-dotnet. Haven't tested it with MPF yet. The question is how we package YetAnotherHttpHandler. It's a UPM package, but GRPC and a bunch of other things we need are nuget packages. The current implementation compiles all the nuget stuff into a library that links to Unity. I see three possibilities:
@freezy What do you think? |
I need to look into how exactly, but you can proxy stuff with Verdaccio, the registry running at registry.visualpinball.org. So we could go point one but through our own registry? What do you think? I need to spend some time on infrastructure, GitHub just blocked the assetlib repo because of too much traffic. I'll probably set up a self-hosted Gitea instance for this, and update the Verdaccio instance at the same time. |
Yep sounds good. I'll set it up with UnityNuGet for now and then I'll tell you what exactly you need to proxy when it's all working. |
Look like @jsm174 already worked on this before. I just found his misc/grpc-dotnet branch. Why was this not merged? Did it not work? |
Hello! I just looked through my notes and some of my discord conversations, and I couldn't find anything on where I was at. (I think it was almost 3 years ago). I do remember that I spent countless hours on this. 😄 It's possible grpc-dotnet wasn't quite working with arm64 at the time. (I do my dev on macos). I'm assuming that it's been so long now all that stuff is probably figured out and working. |
https://grpc.io/blog/grpc-csharp-future/
We should move to gprc-dotnet
The text was updated successfully, but these errors were encountered: