Grpc.AspNetCore.Server (2.80.0)

Published 2026-09-09 02:36:26 +03:30 by kayer

Installation

dotnet nuget add source --name kayer --username your_username --password your_token 
dotnet add package --source kayer --version 2.80.0 Grpc.AspNetCore.Server

About this package

gRPC support for ASP.NET Core

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.

Dependencies

ID Version Target Framework
Grpc.Net.Common 2.80.0 net10.0
Grpc.Net.Common 2.80.0 net8.0
Grpc.Net.Common 2.80.0 net9.0
Details
NuGet
2026-09-09 02:36:26 +03:30
1
The gRPC Authors
371 KiB
Assets (2)
Versions (1) View all
2.80.0 2026-09-09