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 ### Example code and setup
The example code for our tutorial is in The example code for our tutorial is in
[grpc/grpc/examples/cpp/route_guide](https://github.com/grpc/grpc/tree/ [grpc/grpc/examples/cpp/route_guide](https://github.com/grpc/grpc/tree/{{< param grpc_release_tag >}}/examples/cpp/route_guide). To
{{< param grpc_release_tag >}}/examples/cpp/route_guide). To
download the example, clone the `grpc` repository by running the following download the example, clone the `grpc` repository by running the following
command: 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 define the gRPC *service* and the method *request* and *response* types using
[protocol buffers](https://developers.google.com/protocol-buffers/docs/overview). [protocol buffers](https://developers.google.com/protocol-buffers/docs/overview).
You can see the complete .proto file in You can see the complete .proto file in
[`examples/protos/route_guide.proto`](https://github.com/grpc/grpc/blob/ [`examples/protos/route_guide.proto`](https://github.com/grpc/grpc/blob/{{< param grpc_release_tag >}}/examples/protos/route_guide.proto).
{{< param grpc_release_tag >}}/examples/protos/route_guide.proto).
To define a service, you specify a named `service` in your .proto file: 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 service definition. We do this using the protocol buffer compiler `protoc` with
a special gRPC C++ plugin. a special gRPC C++ plugin.
For simplicity, we've provided a [Makefile](https://github.com/grpc/grpc/blob/ For simplicity, we've provided a [Makefile](https://github.com/grpc/grpc/blob/{{< param grpc_release_tag >}}/examples/cpp/route_guide/Makefile)
{{< param grpc_release_tag >}}/examples/cpp/route_guide/Makefile)
that runs `protoc` for you with the appropriate plugin, input, and output (if 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 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/ the gRPC code [installation instructions](https://github.com/grpc/grpc/blob/{{< param grpc_release_tag >}}/src/cpp/README.md#make) first):
{{< param grpc_release_tag >}}/src/cpp/README.md#make) first):
```sh ```sh
$ make route_guide.grpc.pb.cc route_guide.pb.cc $ 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. service responses.
You can find our example `RouteGuide` server in You can find our example `RouteGuide` server in
[examples/cpp/route_guide/route_guide_server.cc](https://github.com/grpc/grpc/blob/ [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).
{{< param grpc_release_tag >}}/examples/cpp/route_guide/route_guide_server.cc).
Let's take a closer look at how it works. Let's take a closer look at how it works.
#### Implementing RouteGuide #### 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` In this section, we'll look at creating a C++ client for our `RouteGuide`
service. You can see our complete example client code in service. You can see our complete example client code in
[examples/cpp/route_guide/route_guide_client.cc](https://github.com/grpc/grpc/blob/ [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).
{{< param grpc_release_tag >}}/examples/cpp/route_guide/route_guide_client.cc).
#### Creating a stub #### Creating a stub

View File

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