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,423
SanedBuildingBlocks
This package built for OIG-Saned
2,419
SanedBuildingBlocks
This package built for OIG-Saned
912
SanedBuildingBlocks
This package built for OIG-Saned
833
SanedBuildingBlocks
This package built for OIG-Saned
753
SanedBuildingBlocks
This package built for OIG-Saned
647
SanedBuildingBlocks
This package built for OIG-Saned
456
SanedBuildingBlocks
This package built for OIG-Saned
422
SanedBuildingBlocks
This package built for OIG-Saned
276
SanedBuildingBlocks
This package built for OIG-Saned
269
SanedBuildingBlocks
This package built for OIG-Saned
221
SanedBuildingBlocks
This package built for OIG-Saned
191
SanedBuildingBlocks
This package built for OIG-Saned
186
SanedBuildingBlocks
This package built for OIG-Saned
184
SanedBuildingBlocks
This package built for OIG-Saned
157
SanedBuildingBlocks
This package built for OIG-Saned
125
SanedBuildingBlocks
This package built for OIG-Saned
121
SanedBuildingBlocks
This package built for OIG-Saned
118
SanedBuildingBlocks
This package built for OIG-Saned
115
SanedBuildingBlocks
This package built for OIG-Saned
110

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