Home | History | Annotate | only in /external/grpc-grpc/examples/csharp/Helloworld
Up to higher level directory
NameDateSize
generate_protos.bat22-Oct-20201.1K
Greeter/22-Oct-2020
Greeter.sln22-Oct-20201.9K
GreeterClient/22-Oct-2020
GreeterServer/22-Oct-2020
README.md22-Oct-20201.1K

README.md

      1 gRPC in 3 minutes (C#)
      2 ========================
      3 
      4 BACKGROUND
      5 -------------
      6 For this sample, we've already generated the server and client stubs from [helloworld.proto][].
      7 
      8 Example projects in this directory depend on the [Grpc](https://www.nuget.org/packages/Grpc/)
      9 and [Google.Protobuf](https://www.nuget.org/packages/Google.Protobuf/) NuGet packages
     10 which have been already added to the project for you.
     11 
     12 PREREQUISITES
     13 -------------
     14 
     15 - The [.NET Core SDK 2.1+](https://www.microsoft.com/net/core)
     16 
     17 You can also build the example directly using Visual Studio 2017, but it's not a requirement.
     18 
     19 BUILD
     20 -------
     21 
     22 From the `examples/csharp/Helloworld` directory:
     23 
     24 - `dotnet build Greeter.sln`
     25 
     26 Try it!
     27 -------
     28 
     29 - Run the server
     30 
     31   ```
     32   > cd GreeterServer
     33   > dotnet run -f netcoreapp2.1
     34   ```
     35 
     36 - Run the client
     37 
     38   ```
     39   > cd GreeterClient
     40   > dotnet run -f netcoreapp2.1
     41   ```
     42 
     43 Tutorial
     44 --------
     45 
     46 You can find a more detailed tutorial about Grpc in [gRPC Basics: C#][]
     47 
     48 [helloworld.proto]:../../protos/helloworld.proto
     49 [gRPC Basics: C#]:https://grpc.io/docs/tutorials/basic/csharp.html
     50