{"id":28672534,"url":"https://github.com/p7coreorg/grpc-dotnetcore-play","last_synced_at":"2025-08-09T01:52:23.659Z","repository":{"id":44204800,"uuid":"207683089","full_name":"P7CoreOrg/gRPC-dotnetcore-play","owner":"P7CoreOrg","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-11T02:39:40.000Z","size":63,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T19:09:54.607Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/P7CoreOrg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-10T23:45:52.000Z","updated_at":"2020-11-26T12:49:13.000Z","dependencies_parsed_at":"2022-08-19T21:51:43.875Z","dependency_job_id":null,"html_url":"https://github.com/P7CoreOrg/gRPC-dotnetcore-play","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/P7CoreOrg/gRPC-dotnetcore-play","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P7CoreOrg%2FgRPC-dotnetcore-play","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P7CoreOrg%2FgRPC-dotnetcore-play/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P7CoreOrg%2FgRPC-dotnetcore-play/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P7CoreOrg%2FgRPC-dotnetcore-play/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/P7CoreOrg","download_url":"https://codeload.github.com/P7CoreOrg/gRPC-dotnetcore-play/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/P7CoreOrg%2FgRPC-dotnetcore-play/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269518562,"owners_count":24430636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-13T19:09:50.786Z","updated_at":"2025-08-09T01:52:23.600Z","avatar_url":"https://github.com/P7CoreOrg.png","language":"C#","readme":"# gRPC-dotnetcore-play\n\n## Currently using v3.0.0-preview9 sdk \n[.NET Core 3.0 SDKs](https://dotnet.microsoft.com/download/dotnet-core/3.0)  \n[SDK 3.0.100-preview9-014004](https://dotnet.microsoft.com/download/thank-you/dotnet-sdk-3.0.100-preview9-windows-x64-installer)  \n\n```\nps\u003e ./build.ps1\nps\u003e docker-compose -f docker-compose.yml up\n```\n\nEXPOSED:  https://localhost:4701\n\n```\nMicrosoft Visual Studio Enterprise 2019 Preview\nVersion 16.3.0 Preview 3.0\nVisualStudio.16.Preview/16.3.0-pre.3.0+29230.61\nMicrosoft .NET Framework\nVersion 4.8.03752\n```\n\n# INSECURE\n\nCalling gRPC from inside docker-compose or kubernetes is all over http, so the following needs to be set for those calls to succeed.\n\n// This switch must be set before creating the GrpcChannel/HttpClient.  \nAppContext.SetSwitch(\"System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport\", true);\n\n[ms docs](https://docs.microsoft.com/en-us/aspnet/core/grpc/troubleshoot?view=aspnetcore-3.0#call-insecure-grpc-services-with-net-core-client)  \n\nCall insecure gRPC services with .NET Core client\nAdditional configuration is required to call insecure gRPC services with the .NET Core client. The gRPC client must set the System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport switch to true and use http in the server address:\n```\n// This switch must be set before creating the GrpcChannel/HttpClient.\nAppContext.SetSwitch(\"System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport\", true);\n\n// The port number(5000) must match the port of the gRPC server.\nvar channel = GrpcChannel.ForAddress(\"http://localhost:5000\");\nvar client = new Greet.GreeterClient(channel);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp7coreorg%2Fgrpc-dotnetcore-play","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp7coreorg%2Fgrpc-dotnetcore-play","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp7coreorg%2Fgrpc-dotnetcore-play/lists"}