Grpc.AspNetCore.Server 2.52.0-pre1

Grpc.AspNetCore.Server

Grpc.AspNetCore.Server is a gRPC server library for .NET.

Configure gRPC

In Startup.cs:

  • gRPC is enabled with the AddGrpc method.
  • Each gRPC service is added to the routing pipeline through the MapGrpcService method. For information about how to create gRPC services, see Create gRPC services and methods.
public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        services.AddGrpc();
    }

    public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
    {
        if (env.IsDevelopment())
        {
            app.UseDeveloperExceptionPage();
        }

        app.UseRouting();

        app.UseEndpoints(endpoints =>
        {
            endpoints.MapGrpcService<GreeterService>();
        });
    }
}

ASP.NET Core middleware and features share the routing pipeline, therefore an app can be configured to serve additional request handlers. The additional request handlers, such as MVC controllers, work in parallel with the configured gRPC services.

Showing the top 20 packages that depend on Grpc.AspNetCore.Server.

Packages Downloads
Grpc.AspNetCore.Server.ClientFactory
HttpClientFactory integration the for gRPC .NET client when running in ASP.NET Core
4
Grpc.AspNetCore.Server.ClientFactory
HttpClientFactory integration the for gRPC .NET client when running in ASP.NET Core
3
Grpc.AspNetCore.Server.ClientFactory
HttpClientFactory integration the for gRPC .NET client when running in ASP.NET Core
2

.NET Core 3.0

.NET 5.0

.NET 6.0

.NET 7.0

Version Downloads Last updated
2.67.0 2 11/30/2024
2.67.0-pre1 2 11/18/2024
2.66.0 3 11/18/2024
2.66.0-pre1 2 11/18/2024
2.65.0 2 11/18/2024
2.65.0-pre1 2 10/05/2024
2.64.0 2 11/18/2024
2.64.0-pre1 2 11/18/2024
2.63.0 3 10/04/2024
2.63.0-pre1 2 11/18/2024
2.62.0 2 10/05/2024
2.62.0-pre1 2 11/18/2024
2.61.0 3 06/10/2024
2.61.0-pre1 2 10/04/2024
2.60.0 2 11/18/2024
2.60.0-pre1 2 11/18/2024
2.59.0 4 03/09/2024
2.59.0-pre1 2 11/18/2024
2.58.0 2 11/18/2024
2.58.0-pre1 2 11/18/2024
2.57.0 2 11/18/2024
2.57.0-pre1 2 11/18/2024
2.56.0 2 11/18/2024
2.56.0-pre2 2 10/06/2024
2.56.0-pre1 2 11/18/2024
2.55.0 2 10/08/2024
2.55.0-pre1 2 11/18/2024
2.54.0 2 11/18/2024
2.54.0-pre1 2 11/18/2024
2.53.0 2 11/02/2024
2.53.0-pre1 2 11/18/2024
2.52.0 2 11/18/2024
2.52.0-pre1 2 11/18/2024
2.51.0 1 11/18/2024
2.51.0-pre1 2 11/18/2024
2.50.0 2 10/05/2024
2.50.0-pre1 2 11/18/2024
2.49.0 2 11/18/2024
2.49.0-pre1 2 11/18/2024
2.48.0 2 11/18/2024
2.48.0-pre1 2 11/18/2024
2.47.0 2 11/18/2024
2.47.0-pre1 2 11/18/2024
2.46.0 2 11/18/2024
2.46.0-pre1 2 11/18/2024
2.45.0 2 11/18/2024
2.45.0-pre1 2 11/18/2024
2.44.0 2 10/08/2024
2.44.0-pre1 2 11/18/2024
2.43.0 2 11/18/2024
2.43.0-pre1 2 11/18/2024
2.42.0 2 11/18/2024
2.42.0-pre1 2 11/18/2024
2.41.0 2 11/18/2024
2.41.0-pre1 2 11/18/2024
2.40.0 2 11/18/2024
2.40.0-pre1 2 10/23/2024
2.39.0 2 11/18/2024
2.39.0-pre1 2 11/18/2024
2.38.0 2 10/03/2024
2.38.0-pre1 2 11/18/2024
2.37.0 2 10/06/2024
2.37.0-pre1 2 11/18/2024
2.36.0 2 11/18/2024
2.36.0-pre1 2 11/11/2024
2.35.0 2 11/18/2024
2.35.0-pre1 2 11/18/2024
2.34.0 2 11/18/2024
2.34.0-pre1 2 11/18/2024
2.33.1 2 11/18/2024
2.33.1-pre1 2 11/18/2024
2.32.0 2 11/18/2024
2.32.0-pre1 2 11/18/2024
2.31.0 2 11/18/2024
2.31.0-pre2 2 11/18/2024
2.30.0 2 11/18/2024
2.30.0-pre1 2 11/18/2024
2.29.0 2 11/18/2024
2.29.0-pre1 2 11/18/2024
2.28.0 3 11/23/2022
2.28.0-pre2 2 11/18/2024
2.28.0-pre1 2 11/18/2024
2.27.0 2 11/18/2024
2.27.0-pre1 2 11/18/2024
2.26.0 2 11/18/2024
2.26.0-pre1 2 11/18/2024
2.25.0 2 11/18/2024
2.25.0-pre1 2 10/08/2024
2.24.0 2 10/04/2024
2.24.0-pre1 2 11/18/2024
2.23.2 2 10/07/2024
0.2.23-pre2 2 11/18/2024
0.2.23-pre1 2 10/06/2024
0.1.22-pre3 2 11/18/2024
0.1.22-pre2 2 11/18/2024
0.1.22-pre1 2 11/18/2024
0.1.21-pre1 2 10/31/2024
0.1.20-pre1 2 11/18/2024
0.1.19-pre1 2 11/18/2024