unplugged-vendor/external/grpc-grpc/examples/csharp/Helloworld
2025-10-06 13:59:42 +00:00
..
Greeter Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
GreeterClient Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
GreeterServer Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
generate_protos.bat Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
Greeter.sln Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
README.md Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00

gRPC in 3 minutes (C#)

BACKGROUND

For this sample, we've already generated the server and client stubs from helloworld.proto.

Example projects in this directory depend on the Grpc and Google.Protobuf NuGet packages which have been already added to the project for you.

PREREQUISITES

You can also build the example directly using Visual Studio 2017, but it's not a requirement.

BUILD

From the examples/csharp/Helloworld directory:

  • dotnet build Greeter.sln

Try it!

  • Run the server

    > cd GreeterServer
    > dotnet run -f netcoreapp2.1
    
  • Run the client

    > cd GreeterClient
    > dotnet run -f netcoreapp2.1
    

Tutorial

You can find a more detailed tutorial about Grpc in gRPC Basics: C#