OLD | NEW |
(Empty) | |
| 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 [hello
world.proto][]. |
| 7 |
| 8 Example projects depend on the [Grpc](https://www.nuget.org/packages/Grpc/) |
| 9 and [Google.Protobuf](https://www.nuget.org/packages/Google.Protobuf/) NuGet pac
kages |
| 10 which have been already added to the project for you. |
| 11 |
| 12 PREREQUISITES |
| 13 ------------- |
| 14 **Windows** |
| 15 - .NET 4.5+ |
| 16 - Visual Studio 2013 or 2015 |
| 17 |
| 18 **Linux** |
| 19 - Mono 4.0+ |
| 20 - Monodevelop 5.9+ (with NuGet plugin installed) |
| 21 |
| 22 **Mac OS X** |
| 23 - Xamarin Studio 5.9+ |
| 24 - [homebrew][] |
| 25 |
| 26 BUILD |
| 27 ------- |
| 28 |
| 29 - Open solution `Greeter.sln` with Visual Studio, Monodevelop (on Linux) or Xama
rin Studio (on Mac OS X) |
| 30 |
| 31 - Build the solution (this will automatically download NuGet dependencies) |
| 32 |
| 33 Try it! |
| 34 ------- |
| 35 |
| 36 - Run the server |
| 37 |
| 38 ``` |
| 39 > cd GreeterServer/bin/Debug |
| 40 > GreeterServer.exe |
| 41 ``` |
| 42 |
| 43 - Run the client |
| 44 |
| 45 ``` |
| 46 > cd GreeterClient/bin/Debug |
| 47 > GreeterClient.exe |
| 48 ``` |
| 49 |
| 50 You can also run the server and client directly from the IDE. |
| 51 |
| 52 On Linux or Mac, use `mono GreeterServer.exe` and `mono GreeterClient.exe` to ru
n the server and client. |
| 53 |
| 54 Tutorial |
| 55 -------- |
| 56 |
| 57 You can find a more detailed tutorial in [gRPC Basics: C#][] |
| 58 |
| 59 [homebrew]:http://brew.sh |
| 60 [helloworld.proto]:../../protos/helloworld.proto |
| 61 [gRPC Basics: C#]:http://www.grpc.io/docs/tutorials/basic/csharp.html |
OLD | NEW |