Merge pull request #140 from JKapostins/master

Removing spaces from hyper links in C# and cpp basic documentation.
This commit is contained in:
Luc Perkins 2020-03-16 16:41:45 -07:00 committed by GitHub
commit fdc4bd16d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 22 deletions

View File

@ -41,8 +41,7 @@ updating.
### Example code and setup
The example code for our tutorial is in
[grpc/grpc/examples/cpp/route_guide](https://github.com/grpc/grpc/tree/
{{< param grpc_release_tag >}}/examples/cpp/route_guide). To
[grpc/grpc/examples/cpp/route_guide](https://github.com/grpc/grpc/tree/{{< param grpc_release_tag >}}/examples/cpp/route_guide). To
download the example, clone the `grpc` repository by running the following
command:
@ -67,8 +66,7 @@ Our first step (as you'll know from the [Overview](/docs/)) is to
define the gRPC *service* and the method *request* and *response* types using
[protocol buffers](https://developers.google.com/protocol-buffers/docs/overview).
You can see the complete .proto file in
[`examples/protos/route_guide.proto`](https://github.com/grpc/grpc/blob/
{{< param grpc_release_tag >}}/examples/protos/route_guide.proto).
[`examples/protos/route_guide.proto`](https://github.com/grpc/grpc/blob/{{< param grpc_release_tag >}}/examples/protos/route_guide.proto).
To define a service, you specify a named `service` in your .proto file:
@ -152,12 +150,10 @@ Next we need to generate the gRPC client and server interfaces from our .proto
service definition. We do this using the protocol buffer compiler `protoc` with
a special gRPC C++ plugin.
For simplicity, we've provided a [Makefile](https://github.com/grpc/grpc/blob/
{{< param grpc_release_tag >}}/examples/cpp/route_guide/Makefile)
For simplicity, we've provided a [Makefile](https://github.com/grpc/grpc/blob/{{< param grpc_release_tag >}}/examples/cpp/route_guide/Makefile)
that runs `protoc` for you with the appropriate plugin, input, and output (if
you want to run this yourself, make sure you've installed protoc and followed
the gRPC code [installation instructions](https://github.com/grpc/grpc/blob/
{{< param grpc_release_tag >}}/src/cpp/README.md#make) first):
the gRPC code [installation instructions](https://github.com/grpc/grpc/blob/{{< param grpc_release_tag >}}/src/cpp/README.md#make) first):
```sh
$ make route_guide.grpc.pb.cc route_guide.pb.cc
@ -206,8 +202,7 @@ There are two parts to making our `RouteGuide` service do its job:
service responses.
You can find our example `RouteGuide` server in
[examples/cpp/route_guide/route_guide_server.cc](https://github.com/grpc/grpc/blob/
{{< param grpc_release_tag >}}/examples/cpp/route_guide/route_guide_server.cc).
[examples/cpp/route_guide/route_guide_server.cc](https://github.com/grpc/grpc/blob/{{< param grpc_release_tag >}}/examples/cpp/route_guide/route_guide_server.cc).
Let's take a closer look at how it works.
#### Implementing RouteGuide
@ -361,8 +356,7 @@ As you can see, we build and start our server using a `ServerBuilder`. To do thi
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/cpp/route_guide/route_guide_client.cc](https://github.com/grpc/grpc/blob/
{{< param grpc_release_tag >}}/examples/cpp/route_guide/route_guide_client.cc).
[examples/cpp/route_guide/route_guide_client.cc](https://github.com/grpc/grpc/blob/{{< param grpc_release_tag >}}/examples/cpp/route_guide/route_guide_client.cc).
#### Creating a stub

View File

@ -38,8 +38,7 @@ updating.
### Example code and setup
The example code for our tutorial is in
[grpc/grpc/examples/csharp/RouteGuide](https://github.com/grpc/grpc/tree/
{{< param grpc_release_tag >}}/examples/csharp/RouteGuide). To
[grpc/grpc/examples/csharp/RouteGuide](https://github.com/grpc/grpc/tree/{{< param grpc_release_tag >}}/examples/csharp/RouteGuide). To
download the example, clone the `grpc` repository by running the following
command:
@ -52,8 +51,7 @@ All the files for this tutorial are in the directory
`examples/csharp/RouteGuide`. Open the solution
`examples/csharp/RouteGuide/RouteGuide.sln` from Visual Studio (Windows or Mac) or Visual Studio Code.
For additional installation details, see the [How to use
instructions](https://github.com/grpc/grpc/tree/
{{< param grpc_release_tag >}}/src/csharp#how-to-use).
instructions](https://github.com/grpc/grpc/tree/{{< param grpc_release_tag >}}/src/csharp#how-to-use).
### Defining the service
@ -61,8 +59,7 @@ Our first step (as you'll know from the [Overview](/docs/)) is to
define the gRPC *service* and the method *request* and *response* types using
[protocol buffers](https://developers.google.com/protocol-buffers/docs/overview).
You can see the complete .proto file in
[`examples/protos/route_guide.proto`](https://github.com/grpc/grpc/blob/
{{< param grpc_release_tag >}}/examples/protos/route_guide.proto).
[`examples/protos/route_guide.proto`](https://github.com/grpc/grpc/blob/{{< param grpc_release_tag >}}/examples/protos/route_guide.proto).
To define a service, you specify a named `service` in your .proto file:
@ -183,8 +180,7 @@ There are two parts to making our `RouteGuide` service do its job:
service responses.
You can find our example `RouteGuide` server in
[examples/csharp/RouteGuide/RouteGuideServer/RouteGuideImpl.cs](https://github.com/grpc/grpc/blob/
{{< param grpc_release_tag >}}/examples/csharp/RouteGuide/RouteGuideServer/RouteGuideImpl.cs).
[examples/csharp/RouteGuide/RouteGuideServer/RouteGuideImpl.cs](https://github.com/grpc/grpc/blob/{{< param grpc_release_tag >}}/examples/csharp/RouteGuide/RouteGuideServer/RouteGuideImpl.cs).
Let's take a closer look at how it works.
#### Implementing RouteGuide
@ -352,8 +348,7 @@ do this, we:
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/RouteGuide/RouteGuideClient/Program.cs](https://github.com/grpc/grpc/blob/
{{< param grpc_release_tag >}}/examples/csharp/RouteGuide/RouteGuideClient/Program.cs).
[examples/csharp/RouteGuide/RouteGuideClient/Program.cs](https://github.com/grpc/grpc/blob/{{< param grpc_release_tag >}}/examples/csharp/RouteGuide/RouteGuideClient/Program.cs).
#### Creating a client object