dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.58k stars 25.29k forks source link

How to create a gRPC server with explicitly defined parameters? #17821

Open pawelpetruch opened 4 years ago

pawelpetruch commented 4 years ago

The page doesn't show how to create a server with explicit parameters like IPAddress and Port we want the server to listen on.

In Grpc.Core you can create a server with a set of parameters like Services to bind to and Ports, which is very convenient. Also being given an instance of a server allows you to start / stop it.

I assume the same functionality is implemented in Grpc.Net but not documented at all. Therefore, any docs on that matter would be hugely beneficial.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

wadepickett commented 4 years ago

@pawelpetruch, thanks very much for bringing this up. We need to clarify where that information is, and that it is not a special case for gRPC since those configuration options and more are available for all ASP.NET Core apps.

So I'll go this route for fixing this:

Many thanks!

pawelpetruch commented 4 years ago

@wadepickett that would be great.