Grpc.AspNetCore
2.57.0
dotnet add package Grpc.AspNetCore --version 2.57.0
NuGet\Install-Package Grpc.AspNetCore -Version 2.57.0
<PackageReference Include="Grpc.AspNetCore" Version="2.57.0" />
paket add Grpc.AspNetCore --version 2.57.0
#r "nuget: Grpc.AspNetCore, 2.57.0"
// Install Grpc.AspNetCore as a Cake Addin
#addin nuget:?package=Grpc.AspNetCore&version=2.57.0
// Install Grpc.AspNetCore as a Cake Tool
#tool nuget:?package=Grpc.AspNetCore&version=2.57.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.
Links
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. |
-
net6.0
- Google.Protobuf (>= 3.23.1)
- Grpc.AspNetCore.Server.ClientFactory (>= 2.57.0)
- Grpc.Tools (>= 2.57.0)
-
net7.0
- Google.Protobuf (>= 3.23.1)
- Grpc.AspNetCore.Server.ClientFactory (>= 2.57.0)
- Grpc.Tools (>= 2.57.0)
-
net8.0
- Google.Protobuf (>= 3.23.1)
- Grpc.AspNetCore.Server.ClientFactory (>= 2.57.0)
- Grpc.Tools (>= 2.57.0)
NuGet packages (212)
Showing the top 5 NuGet packages that depend on Grpc.AspNetCore:
Package | Downloads |
---|---|
Proto.Remote
Ultra-fast distributed actors for .NET. |
|
MyJetWallet.Sdk.Grpc
Package Description |
|
Calzolari.Grpc.AspNetCore.Validation
Request message validator for Grpc.AspNetCore |
|
MyJetWallet.Sdk.Service
Package Description |
|
EventStore.Client.Embedded
The embedded client API for Event Store. Get the open source or commercial versions of Event Store server from https://eventstore.com/ |
GitHub repositories (77)
Showing the top 5 popular GitHub repositories that depend on Grpc.AspNetCore:
Repository | Stars |
---|---|
dotnet-architecture/eShopOnContainers
Cross-platform .NET sample microservices and container based application that runs on Linux Windows and macOS. Powered by .NET 7, Docker Containers and Azure Kubernetes Services. Supports Visual Studio, VS for Mac and CLI based environments with Docker CLI, dotnet CLI, VS Code or any other code editor.
|
|
dotnet/efcore
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
|
|
dotnet/runtime
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
|
|
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
|
|
EventStore/EventStore
The stream database optimised for event sourcing
|
Version | Downloads | Last updated |
---|---|---|
2.57.0 | 131,529 | 9/6/2023 |
2.57.0-pre1 | 3,889 | 8/31/2023 |
2.56.0 | 111,030 | 8/25/2023 |
2.56.0-pre2 | 3,186 | 8/16/2023 |
2.56.0-pre1 | 2,910 | 8/3/2023 |
2.55.0 | 585,414 | 7/4/2023 |
2.55.0-pre1 | 3,423 | 6/23/2023 |
2.54.0 | 502,626 | 6/15/2023 |
2.54.0-pre1 | 7,909 | 5/25/2023 |
2.53.0 | 953,229 | 5/5/2023 |
2.53.0-pre1 | 6,482 | 4/12/2023 |
2.52.0 | 1,176,495 | 3/15/2023 |
2.52.0-pre1 | 4,825 | 3/3/2023 |
2.51.0 | 1,494,354 | 1/2/2023 |
2.51.0-pre1 | 4,721 | 12/7/2022 |
2.50.0 | 937,877 | 11/17/2022 |
2.50.0-pre1 | 9,897 | 11/3/2022 |
2.49.0 | 1,968,309 | 9/26/2022 |
2.49.0-pre1 | 2,141 | 9/1/2022 |
2.48.0 | 759,254 | 8/24/2022 |
2.48.0-pre1 | 1,703 | 8/17/2022 |
2.47.0 | 1,427,303 | 7/3/2022 |
2.47.0-pre1 | 1,917 | 6/23/2022 |
2.46.0 | 1,551,930 | 5/13/2022 |
2.46.0-pre1 | 1,773 | 4/28/2022 |
2.45.0 | 1,211,688 | 4/19/2022 |
2.45.0-pre1 | 3,090 | 4/7/2022 |
2.44.0 | 915,095 | 3/17/2022 |
2.44.0-pre1 | 17,830 | 3/9/2022 |
2.43.0 | 605,123 | 2/25/2022 |
2.43.0-pre1 | 8,237 | 1/28/2022 |
2.42.0 | 1,497,068 | 1/19/2022 |
2.42.0-pre1 | 7,319 | 12/30/2021 |
2.41.0 | 1,098,059 | 12/7/2021 |
2.41.0-pre1 | 15,468 | 11/12/2021 |
2.40.0 | 3,145,628 | 10/5/2021 |
2.40.0-pre1 | 3,369 | 9/9/2021 |
2.39.0 | 1,163,821 | 8/18/2021 |
2.39.0-pre1 | 3,674 | 8/6/2021 |
2.38.0 | 1,300,166 | 6/11/2021 |
2.38.0-pre1 | 618 | 6/4/2021 |
2.37.0 | 1,034,615 | 4/20/2021 |
2.37.0-pre1 | 364 | 4/14/2021 |
2.36.0 | 510,580 | 3/17/2021 |
2.36.0-pre1 | 903 | 3/9/2021 |
2.35.0 | 620,407 | 2/4/2021 |
2.35.0-pre1 | 1,395 | 1/26/2021 |
2.34.0 | 1,448,857 | 12/11/2020 |
2.34.0-pre1 | 2,695 | 12/1/2020 |
2.33.1 | 784,098 | 10/28/2020 |
2.33.1-pre1 | 692 | 10/22/2020 |
2.32.0 | 898,878 | 10/5/2020 |
2.32.0-pre1 | 12,775 | 9/8/2020 |
2.31.0 | 483,345 | 8/14/2020 |
2.31.0-pre2 | 833 | 8/3/2020 |
2.30.0 | 237,021 | 7/16/2020 |
2.30.0-pre1 | 2,428 | 6/17/2020 |
2.29.0 | 468,535 | 5/27/2020 |
2.29.0-pre1 | 2,723 | 5/15/2020 |
2.28.0 | 561,973 | 4/9/2020 |
2.28.0-pre2 | 15,072 | 3/11/2020 |
2.28.0-pre1 | 5,991 | 3/3/2020 |
2.27.0 | 1,391,927 | 2/7/2020 |
2.27.0-pre1 | 6,075 | 1/24/2020 |
2.26.0 | 299,405 | 12/19/2019 |
2.26.0-pre1 | 626 | 12/10/2019 |
2.25.0 | 908,162 | 11/7/2019 |
2.25.0-pre1 | 606 | 11/1/2019 |
2.24.0 | 304,200 | 10/21/2019 |
2.24.0-pre1 | 1,016 | 10/9/2019 |
2.23.2 | 198,144 | 9/20/2019 |
0.2.23-pre2 | 4,430 | 9/6/2019 |
0.2.23-pre1 | 4,750 | 8/21/2019 |
0.1.22-pre3 | 6,169 | 7/30/2019 |
0.1.22-pre2 | 10,044 | 7/2/2019 |