How do you create a gRPC client in .NET Framework?

后端 未结 2 1902
生来不讨喜
生来不讨喜 2020-12-10 17:55

I followed the instructions at:

https://docs.microsoft.com/en-us/aspnet/core/tutorials/grpc/grpc-start?view=aspnetcore-3.1&tabs=visual-studio

to create a

2条回答
  •  没有蜡笔的小新
    2020-12-10 18:10

    you can configure the .Net core grpc server on insecure through config

    There are 2 ways,

    launchSettings,json

    {
      "profiles": {
        "DemoService": {
          "commandName": "Project",
          "launchBrowser": false,
          "applicationUrl": "http://localhost:5001",
          "environmentVariables": {
            "ASPNETCORE_ENVIRONMENT": "Development"
          }
        }
      }
    }
    

    Or

    appsettings,json

    "Kestrel": {
        "EndpointDefaults": {
          "Protocols": "Http2"
        },
        "EndPoints": {
          "Http": {
            "Url": "http://localhost:5001"
          }
        }
      }
    

提交回复
热议问题