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 8018b462b0 update C# examples to netcoreapp2.1 6 years ago
..
Greeter update C# examples to netcoreapp2.1 6 years ago
GreeterClient update C# examples to netcoreapp2.1 6 years ago
GreeterServer update C# examples to netcoreapp2.1 6 years ago
Greeter.sln make new-style .csproj helloworld the default 6 years ago
README.md update C# examples to netcoreapp2.1 6 years ago
generate_protos.bat upgrade dotnet examples to grpc1.14.1 and protobuf 3.6.1 6 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 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#