Jan Tattermusch 7492c7c38c Update README.md 9 년 전
..
.nuget 2b38a91665 update helloworld example to 0.12.0 nuget 10 년 전
Greeter 2b38a91665 update helloworld example to 0.12.0 nuget 10 년 전
GreeterClient cd34a82fc1 fix copyright 9 년 전
GreeterServer 2b38a91665 update helloworld example to 0.12.0 nuget 10 년 전
Greeter.sln 8a937d6ed4 update helloworld example to proto3 10 년 전
README.md 7492c7c38c Update README.md 9 년 전
generate_protos.bat 2b38a91665 update helloworld example to 0.12.0 nuget 10 년 전

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#