grpc/examples/csharp/helloworld
Jan Tattermusch 0bbbb3240e migrate Greeter and Routeguide to 0.14.0 API 2016-05-11 15:35:46 -07:00
..
.nuget update Greeter to 0.14.0 nugets 2016-05-11 14:56:05 -07:00
Greeter regenerate code 2016-05-11 14:57:37 -07:00
GreeterClient update Greeter to 0.14.0 nugets 2016-05-11 14:56:05 -07:00
GreeterServer migrate Greeter and Routeguide to 0.14.0 API 2016-05-11 15:35:46 -07:00
Greeter.sln update helloworld example to proto3 2015-09-02 12:58:44 -07:00
README.md Update README.md 2016-02-12 15:25:45 -08:00
generate_protos.bat update Greeter to 0.14.0 nugets 2016-05-11 14:56:05 -07:00

README.md

gRPC in 3 minutes (C#)

BACKGROUND

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

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

PREREQUISITES

Windows

  • .NET 4.5+
  • Visual Studio 2013 or 2015

Linux

  • Mono 4.0+
  • Monodevelop 5.9+ (with NuGet plugin installed)

Mac OS X

BUILD

  • Open solution Greeter.sln with Visual Studio, Monodevelop (on Linux) or Xamarin Studio (on Mac OS X)

  • Build the solution (this will automatically download NuGet dependencies)

Try it!

  • Run the server

    > cd GreeterServer/bin/Debug
    > GreeterServer.exe
    
  • Run the client

    > cd GreeterClient/bin/Debug
    > GreeterClient.exe
    

You can also run the server and client directly from the IDE.

On Linux or Mac, use mono GreeterServer.exe and mono GreeterClient.exe to run the server and client.

Tutorial

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