Grpc.AspNetCore.Server 2.61.0

Grpc.AspNetCore.Server

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

Configure gRPC

In Program.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.
using GrpcGreeter.Services;

var builder = WebApplication.CreateBuilder(args);

// Add services to the container.
builder.Services.AddGrpc();

var app = builder.Build();

// Configure the HTTP request pipeline.
app.MapGrpcService<GreeterService>();

app.Run();

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
KitSys.CustomSharedLib
KitSys.CustomSharedLib
61
MagicOnion.Server
MagicOnion server built on top of ASP.NET Core. Unified Realtime/API framework for .NET platform and Unity.
14
Grpc.AspNetCore.Server.ClientFactory
HttpClientFactory integration the for gRPC .NET client when running in ASP.NET Core
14
Grpc.AspNetCore.Server.ClientFactory
HttpClientFactory integration the for gRPC .NET client when running in ASP.NET Core
13
Grpc.AspNetCore.Server.ClientFactory
HttpClientFactory integration the for gRPC .NET client when running in ASP.NET Core
12

.NET 6.0

.NET 7.0

.NET 8.0

Version Downloads Last updated
2.67.0 13 03/05/2025
2.66.0 13 10/23/2024
2.65.0 12 10/02/2024
2.61.0 12 02/28/2024
2.60.0 12 01/22/2024
2.58.0 12 12/31/2023
2.55.0 12 08/06/2023
2.50.0 12 10/07/2023
2.48.0 12 06/26/2023
2.34.0 12 06/19/2023