I am trying to do a sample of Uno Platform using gRPC-Web.
Therefore I got inspired by the content provided by this article. I followed the instructions of the article and created a BlazorApp which used a weather service with gRPC-Web. After that I also included an other service, the counter service, as seen in this gRPC-Web example.
After everthing was working, I added a Uno Platform WebAssembly app to replace the BlazorApp client.
Current Problem:
When trying to create a GrpcChannel
the application gets a System.NullReferenceException
.
The code snippet for creating the channel looks like this:
var baseUri = "https://localhost:44366";
var channel = GrpcChannel.ForAddress(baseUri, new GrpcChannelOptions());
This is exactly the same code as used in the BlazorApp.
The sample code for the BlazorApp and the Uno Platform WebAssembly can be found in this repository.
Any idea/suggestion/help would be appreciated.