Grpc.AspNetCore 2.60.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,378
SanedBuildingBlocks
This package built for OIG-Saned
2,351
SanedBuildingBlocks
This package built for OIG-Saned
908
SanedBuildingBlocks
This package built for OIG-Saned
831
SanedBuildingBlocks
This package built for OIG-Saned
740
SanedBuildingBlocks
This package built for OIG-Saned
643
SanedBuildingBlocks
This package built for OIG-Saned
449
SanedBuildingBlocks
This package built for OIG-Saned
419
SanedBuildingBlocks
This package built for OIG-Saned
274
SanedBuildingBlocks
This package built for OIG-Saned
266
SanedBuildingBlocks
This package built for OIG-Saned
189
SanedBuildingBlocks
This package built for OIG-Saned
184
SanedBuildingBlocks
This package built for OIG-Saned
182
SanedBuildingBlocks
This package built for OIG-Saned
123
SanedBuildingBlocks
This package built for OIG-Saned
118
SanedBuildingBlocks
This package built for OIG-Saned
115
SanedBuildingBlocks
This package built for OIG-Saned
112
SanedBuildingBlocks
This package built for OIG-Saned
108
SanedBuildingBlocks
This package built for OIG-Saned
101
SanedBuildingBlocks
This package built for OIG-Saned
92

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