The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#) https://grpc.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Jan Tattermusch d9c1090cdb update C# greeter to use the latest gRPC packages 10 years ago
..
.nuget update C# greeter to use the latest gRPC packages 10 years ago
Greeter update C# greeter to use the latest gRPC packages 10 years ago
GreeterClient update C# greeter to use the latest gRPC packages 10 years ago
GreeterServer update C# greeter to use the latest gRPC packages 10 years ago
route_guide update readme to reflect new location of codegen tools on windows 10 years ago
.gitignore C# Greeter example 10 years ago
Greeter.sln upgrade Grpc package used by greeter to 0.5.0.1 10 years ago
README.md update C# readme 10 years ago

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 NuGet packages Grpc and Google.ProtocolBuffers which have been already added to the project for you.

PREREQUISITES

Windows

  • .NET 4.5+
  • VS 2013 (with NuGet plugin installed)

Linux (Mono)

  • Mono
  • Monodevelop 5.9 with NuGet Add-in installed (older versions might work)

MacOS (Mono)

  • Xamarin Studio (with NuGet plugin installed)

BUILD

Windows

  • Clone this repository.

  • Open solution Greeter.sln with Visual Studio

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

Linux (Mono)

  • Clone this repository.

  • Install gRPC C Core using instructions in https://github.com/grpc/homebrew-grpc

  • gRPC C# depends on native shared library libgrpc_csharp_ext.so. To make it visible to Mono runtime, follow instructions in Using gRPC C# on Linux

  • Open solution Greeter.sln in MonoDevelop (you need to manually restore dependencies by using mono nuget.exe restore if you don't have NuGet add-in)

  • Build the solution.

MacOS (Mono)

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 Visual Studio.

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#