|
|
10 ani în urmă | |
|---|---|---|
| .. | ||
| Greeter | 10 ani în urmă | |
| GreeterClient | 10 ani în urmă | |
| GreeterServer | 10 ani în urmă | |
| .gitignore | 10 ani în urmă | |
| Greeter.sln | 10 ani în urmă | |
| README.md | 10 ani în urmă | |
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.
Windows
Linux (Mono)
MacOS (Mono)
Windows
Greeter.sln with Visual StudioLinux (Mono)
Greeter.sln in MonoDevelop (you need to manually restore dependencies by using mono nuget.exe restore if you don't have NuGet add-in)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.
You can find a more detailed tutorial in gRPC Basics: C#