Grpc.AspNetCore 2.67.0

Grpc.AspNetCore

Grpc.AspNetCore is a metapackage with references to:

  • Grpc.AspNetCore.Server: gRPC server library for .NET.
  • Grpc.Tools: Code-generation tooling package.
  • Google.Protobuf: Protobuf serialization library.

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.

Packages Downloads
SanedBuildingBlocks
This package built for OIG-Saned
3,447
SanedBuildingBlocks
This package built for OIG-Saned
2,467
SanedBuildingBlocks
This package built for OIG-Saned
920
SanedBuildingBlocks
This package built for OIG-Saned
843
SanedBuildingBlocks
This package built for OIG-Saned
770
SanedBuildingBlocks
This package built for OIG-Saned
655
SanedBuildingBlocks
This package built for OIG-Saned
464
SanedBuildingBlocks
This package built for OIG-Saned
431
SanedBuildingBlocks
This package built for OIG-Saned
359
SanedBuildingBlocks
This package built for OIG-Saned
285
SanedBuildingBlocks
This package built for OIG-Saned
276
SanedBuildingBlocks
This package built for OIG-Saned
240
SanedBuildingBlocks
This package built for OIG-Saned
237
SanedBuildingBlocks
This package built for OIG-Saned
233
SanedBuildingBlocks
This package built for OIG-Saned
202
SanedBuildingBlocks
This package built for OIG-Saned
199
SanedBuildingBlocks
This package built for OIG-Saned
195
SanedBuildingBlocks
This package built for OIG-Saned
193
SanedBuildingBlocks
This package built for OIG-Saned
192
SanedBuildingBlocks
This package built for OIG-Saned
136

Version Downloads Last updated
2.67.0 28 03/05/2025
2.66.0 24 10/22/2024
2.61.0 27 02/28/2024
2.60.0 25 01/22/2024
2.58.0 25 12/31/2023
2.55.0 26 08/06/2023