Published
Sep 21, 2026
1mo ago
Total Downloads
303.6M
303,594,571
Install
dotnet add package Grpc.AspNetCore.Server --version 2.84.0
| Product | Versions |
|---|---|
| .NET |
README
Grpc.AspNetCore.Server
Grpc.AspNetCore.Server is a gRPC server library for .NET.
Configure gRPC
In Program.cs:
- gRPC is enabled with the
AddGrpcmethod. - Each gRPC service is added to the routing pipeline through the
MapGrpcServicemethod. 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.
Links
Changes from Previous Version
No structural changes between v2.84.0-pre1 and v2.84.0.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.