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: docs/gettingstarted.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -200,7 +200,7 @@ introduction of `.google.protobuf.Timestamp`). It is recommended to use `DataFor
200
200
201
201
### 2: implement the server
202
202
203
-
1. Create an ASP.NET Core Web Application targeting `net7.0`, and add a package references to [`protobuf-net.Grpc.AspNetCore`](https://www.nuget.org/packages/protobuf-net.Grpc.AspNetCore)
203
+
1. Create an ASP.NET Core Web Application targeting `net8.0`, and add a package references to [`protobuf-net.Grpc.AspNetCore`](https://www.nuget.org/packages/protobuf-net.Grpc.AspNetCore)
204
204
(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.
205
205
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)
206
206
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)
@@ -262,7 +262,7 @@ Now listening on: http://localhost:10042
262
262
263
263
### 2: implement the client
264
264
265
-
OK, we have a working server; now let's write a client. This is much easier, in fact. Let's create a .NET console application targeting `net7.0`,
265
+
OK, we have a working server; now let's write a client. This is much easier, in fact. Let's create a .NET console application targeting `net8.0`,
266
266
and add a package reference to [`protobuf-net.Grpc`](https://www.nuget.org/packages/protobuf-net.Grpc). Note that by default, `HttpClient` only wants to talk HTTP/2 over TLS, so we first
267
267
need to twist it's arm a little; then we can very easily create a client to our services at our base address; let's start by doing some maths:
Copy file name to clipboardExpand all lines: examples/wcf-port/FullStockTicker/src/TraderSys.FullStockTicker.Shared/TraderSys.FullStockTicker.Shared.csproj
0 commit comments