Skip to content

Commit 000c1a2

Browse files
committed
fix a few trailing mains
1 parent cf82724 commit 000c1a2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/gettingstarted.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,10 @@ introduction of `.google.protobuf.Timestamp`). It is recommended to use `DataFor
153153

154154
1. Create an ASP.NET Core Web Application targeting `netcoreapp3.0`, and add a package references to [`protobuf-net.Grpc.AspNetCore`](https://www.nuget.org/packages/protobuf-net.Grpc.AspNetCore)
155155
(and a project/package reference to your data/service contracts if necessary). Note that the gRPC tooling can run alongside other services/sites that your ASP.NET application is providing.
156-
2. in `CreateHostBuilder`, make sure you are using `WebHost`, and enable listening on `HttpProtocols.Http2`; see [`Program.cs`](https://github.com/protobuf-net/protobuf-net.Grpc/blob/master/examples/pb-net-grpc/Server_CS/Program.cs)
157-
3. in `ConfigureServices`, call `services.AddCodeFirstGrpc()`; see [`Startup.cs`](https://github.com/protobuf-net/protobuf-net.Grpc/blob/master/examples/pb-net-grpc/Server_CS/Startup.cs)
156+
2. in `CreateHostBuilder`, make sure you are using `WebHost`, and enable listening on `HttpProtocols.Http2`; see [`Program.cs`](https://github.com/protobuf-net/protobuf-net.Grpc/blob/main/examples/pb-net-grpc/Server_CS/Program.cs)
157+
3. in `ConfigureServices`, call `services.AddCodeFirstGrpc()`; see [`Startup.cs`](https://github.com/protobuf-net/protobuf-net.Grpc/blob/main/examples/pb-net-grpc/Server_CS/Startup.cs)
158158
4. define a class that implements your service contract, i.e. `class MyTimeService : ITimeService`
159-
5. in `Configure`, call `endpoints.MapGrpcService<TService>()` for each of your services; see [`Startup.cs`](https://github.com/protobuf-net/protobuf-net.Grpc/blob/master/examples/pb-net-grpc/Server_CS/Startup.cs)
159+
5. in `Configure`, call `endpoints.MapGrpcService<TService>()` for each of your services; see [`Startup.cs`](https://github.com/protobuf-net/protobuf-net.Grpc/blob/main/examples/pb-net-grpc/Server_CS/Startup.cs)
160160

161161
So what might our services look like? Let's start with our simple calculator; that might be synchronous at the server, which is why `ValueTask<T>` can be useful; consider:
162162

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# protobuf-net.Grpc
22

3-
[![Build status](https://ci.appveyor.com/api/projects/status/en9i5mp471ci6ip3/branch/master?svg=true)](https://ci.appveyor.com/project/StackExchange/protobuf-net-grpc/branch/master)
3+
[![Build status](https://ci.appveyor.com/api/projects/status/en9i5mp471ci6ip3/branch/main?svg=true)](https://ci.appveyor.com/project/StackExchange/protobuf-net-grpc/branch/main)
44

55
`protobuf-net.Grpc` adds code-first support for services over gRPC using either the native `Grpc.Core` API, or the fully-managed `Grpc.Net.Client` / `Grpc.AspNetCore.Server` API.
66

@@ -54,7 +54,7 @@ Everything is available as pre-built packages on nuget; in particular, you proba
5454
- [`protobuf-net.Grpc.Native`](https://www.nuget.org/packages/protobuf-net.Grpc.Native) for clients or servers using the native/unmanaged API
5555
- [`protobuf-net.Grpc`](https://www.nuget.org/packages/protobuf-net.Grpc) and [`Grpc.Net.Client`](https://www.nuget.org/packages/Grpc.Net.Client/) for clients using `HttpClient` on .NET Core 3
5656

57-
[Usage examples are available in C#, VB and F#](https://github.com/protobuf-net/protobuf-net.Grpc/tree/master/examples/pb-net-grpc).
57+
[Usage examples are available in C#, VB and F#](https://github.com/protobuf-net/protobuf-net.Grpc/tree/main/examples/pb-net-grpc).
5858

5959
## Anything else?
6060

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"semVer": 2
77
},
88
"publicReleaseRefSpec": [
9-
"^refs/heads/master$",
9+
"^refs/heads/main$",
1010
"^refs/tags/v\\d+\\.\\d+"
1111
]
1212
}

0 commit comments

Comments
 (0)