You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/README.md
+14-11Lines changed: 14 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,19 +5,21 @@ Examples of basic gRPC scenarios with gRPC for .NET.
5
5
*[Clients](./Clients) - each example has its own client
6
6
*[Server](./Server) - a shared website that hosts all services
7
7
8
+
If you are brand new to gRPC on .NET a good place to start is the getting started tutorial: [Create a gRPC client and server in ASP.NET Core](https://docs.microsoft.com/aspnet/core/tutorials/grpc/grpc-start)
9
+
8
10
## Greeter
9
11
10
-
The greeter shows how to make unary and server streaming gRPC methods and call them from a client.
12
+
The greeter shows how to create unary (non-streaming) and server streaming gRPC methods in ASP.NET Core, and call them from a client.
11
13
12
14
##### Scenarios:
13
15
14
16
* Unary call
15
17
* Server streaming call
16
-
* Client canceling a streaming call
18
+
* Client canceling a call
17
19
18
20
## Counter
19
21
20
-
The counter shows how to make unary and client streaming gRPC methods and call them from a client.
22
+
The counter shows how to create unary (non-streaming) and client streaming gRPC methods in ASP.NET Core, and call them from a client.
21
23
22
24
##### Scenarios:
23
25
@@ -26,7 +28,7 @@ The counter shows how to make unary and client streaming gRPC methods and call t
26
28
27
29
## Mailer
28
30
29
-
The mailer shows how to make bi-directional streaming gRPC methods and call them from a client.
31
+
The mailer shows how to create a bi-directional streaming gRPC method in ASP.NET Core and call it from a client.
30
32
31
33
##### Scenarios:
32
34
@@ -39,7 +41,8 @@ The ticketer shows how to use gRPC with [authentication and authorization in ASP
39
41
##### Scenarios:
40
42
41
43
* JSON web token authentication
42
-
* Authorization with attribute on service
44
+
* Send JWT token with call
45
+
* Authorization with `[Authorize]` on service
43
46
44
47
## Reflector
45
48
@@ -56,14 +59,14 @@ The certifier shows how to configure the client and the server to use a [TLS cli
56
59
57
60
##### Scenarios:
58
61
62
+
* Client certificate authentication
59
63
* Send client certificate with call
60
64
* Receive client certificate in a service
61
-
* Client certificate authentication
62
-
* Authorization with attribute on service
65
+
* Authorization with `[Authorize]` on service
63
66
64
67
## Worker
65
68
66
-
The worker shows how a [worker service](https://devblogs.microsoft.com/aspnet/net-core-workers-as-windows-services/) can use the gRPC client factory to make gRPC calls.
69
+
The worker shows how a [.NET worker service](https://devblogs.microsoft.com/aspnet/net-core-workers-as-windows-services/) can use the gRPC client factory to make gRPC calls.
67
70
68
71
##### Scenarios:
69
72
@@ -72,10 +75,10 @@ The worker shows how a [worker service](https://devblogs.microsoft.com/aspnet/ne
72
75
73
76
## Aggregator
74
77
75
-
The aggregator shows how a to use the gRPC client factory with services to make nested gRPC calls. The gRPC client factory is configured to propagate the context from the original call to the nested call. For example, cancellation will automatically propagate.
78
+
The aggregator shows how a to make nested gRPC calls (a gRPC service calling another gRPC service). The gRPC client factory is used in ASP.NET Core to inject a client into services. The gRPC client factory is configured to propagate the context from the original call to the nested call. In this example the cancellation from the client will automatically propagate through to nested gRPC calls.
0 commit comments