I followed the instructions at:
to create a gRPC service and client in .NET Core and everything worked great.
Next, I need to have a legacy .NET framework app access the service. I found some NuGet packages that install, but haven't found anything that tell you how to use them to make a gRPC client. I'm sure it is out there somewhere, but is currently being drowned out by documentation for the .NET Core version.
I tried creating a .NET Standard project to bridge the gap, but the .Net Core packages require .Net Standard 2.1, which leave out referencing it with any version of .Net Framework.
Can anyone tell me how to get this going or point me in the right direction?
edit: So I found some code for .Net Framework to work with gRPC. The .Net Framework examples default to an insecure connection while the .Net Core examples default to secure connections. And there's no clear path on how to change either one. I've tried generating a certificate to get the client to connect, but that didn't work.
So my new question is: Does anyone know how to convince a .Net Core gRPC service to accept insecure (http:) connections?
you can configure the .Net core grpc server on insecure through config
There are 2 ways,
{
"profiles": {
"DemoService": {
"commandName": "Project",
"launchBrowser": false,
"applicationUrl": "http://localhost:5001",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
Or
"Kestrel": {
"EndpointDefaults": {
"Protocols": "Http2"
},
"EndPoints": {
"Http": {
"Url": "http://localhost:5001"
}
}
}