blob: e4771ee91a12660ae12a889f1554a710203958e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
gRPC in 3 minutes (C#)
========================
BACKGROUND
-------------
This is a version of the helloworld example using the dotnet SDK
tools to compile [helloworld.proto][] in a common library, build the server
and the client, and run them.
PREREQUISITES
-------------
- The [.NET Core SDK 2.1+](https://www.microsoft.com/net/core)
You can also build the solution `Greeter.sln` using Visual Studio 2017,
but it's not a requirement.
BUILD AND RUN
-------------
- Build and run the server
```
> dotnet run -p GreeterServer
```
- Build and run the client
```
> dotnet run -p GreeterClient
```
Tutorial
--------
You can find a more detailed tutorial about Grpc in [gRPC Basics: C#][]
[helloworld.proto]:../../protos/helloworld.proto
[gRPC Basics: C#]:https://grpc.io/docs/tutorials/basic/csharp.html
|