grpc/examples/csharp/helloworld-from-cli
Jan Tattermusch 4d5c3102a1 fix remaining license notices 2017-06-08 11:22:41 +02:00
..
Greeter fix remaining license notices 2017-06-08 11:22:41 +02:00
GreeterClient auto-fix most of licenses 2017-06-08 11:22:41 +02:00
GreeterServer auto-fix most of licenses 2017-06-08 11:22:41 +02:00
Greeter.sln update .NET core example to .csproj projects 2017-04-20 15:33:31 +02:00
README.md update .NET core example to .csproj projects 2017-04-20 15:33:31 +02:00
generate_protos.bat auto-fix most of licenses 2017-06-08 11:22:41 +02:00

README.md

gRPC in 3 minutes (C#)

BACKGROUND

This is a different version of the helloworld example, using the dotnet sdk tools to build and run.

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

BUILD

From the examples/csharp/helloworld-from-cli directory:

  • dotnet restore Greeter.sln

  • dotnet build Greeter.sln

Try it!

  • Run the server

    > cd GreeterServer
    > dotnet run -f netcoreapp1.0
    
  • Run the client

    > cd GreeterClient
    > dotnet run -f netcoreapp1.0
    

Tutorial

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