Skip to content

Commit ee223fb

Browse files
committedJun 23, 2016
Update csharp.md
1 parent 60d5cd8 commit ee223fb

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
 

Diff for: ‎docs/tutorials/basic/csharp.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ service RouteGuide {
5252

5353
Then you define `rpc` methods inside your service definition, specifying their request and response types. gRPC lets you define four kinds of service method, all of which are used in the `RouteGuide` service:
5454

55-
- A *simple RPC* where the client sends a request to the server using the stub and waits for a response to come back, just like a normal function call.
55+
- A *simple RPC* where the client sends a request to the server using the client object and waits for a response to come back, just like a normal function call.
5656

5757
```protobuf
5858
// Obtains the feature at a given position.
@@ -123,9 +123,8 @@ To generate the code, the following command should be run from the `examples/csh
123123

124124
Running the appropriate command for your OS regenerates the following files in the RouteGuide directory:
125125

126-
- `RouteGuide/RouteGuide.cs` defines a namespace `Routeguide`
127-
- This contains all the protocol buffer code to populate, serialize, and retrieve our request and response message types
128-
- `RouteGuide/RouteGuideGrpc.cs`, provides stub and service classes
126+
- `RouteGuide/RouteGuide.cs` contains all the protocol buffer code to populate, serialize, and retrieve our request and response message types
127+
- `RouteGuide/RouteGuideGrpc.cs` provides generated client and server classes, including:
129128
- an abstract class `RouteGuide.RouteGuideBase` to inherit from when defining RouteGuide service implementations
130129
- a class `RouteGuide.RouteGuideClient` that can be used to access remote RouteGuide instances
131130

@@ -284,9 +283,9 @@ As you can see, we build and start our server using `Grpc.Core.Server` class. To
284283

285284
In this section, we'll look at creating a C# client for our `RouteGuide` service. You can see our complete example client code in [examples/csharp/route_guide/RouteGuideClient/Program.cs](https://github.com/grpc/grpc/blob/{{ site.data.config.grpc_release_branch }}/examples/csharp/route_guide/RouteGuideClient/Program.cs).
286285

287-
### Creating a stub
286+
### Creating a client object
288287

289-
To call service methods, we first need to create a *stub*.
288+
To call service methods, we first need to create a client object (also referred to as *stub* for other gRPC languages).
290289

291290
First, we need to create a gRPC client channel that will connect to gRPC server. Then, we use the `RouteGuide.NewClient` method of the `RouteGuide` class generated from our .proto.
292291

0 commit comments

Comments
 (0)
Please sign in to comment.