Grpc.AspNetCore
2.51.0
dotnet add package Grpc.AspNetCore --version 2.51.0
NuGet\Install-Package Grpc.AspNetCore -Version 2.51.0
<PackageReference Include="Grpc.AspNetCore" Version="2.51.0" />
paket add Grpc.AspNetCore --version 2.51.0
#r "nuget: Grpc.AspNetCore, 2.51.0"
// Install Grpc.AspNetCore as a Cake Addin
#addin nuget:?package=Grpc.AspNetCore&version=2.51.0
// Install Grpc.AspNetCore as a Cake Tool
#tool nuget:?package=Grpc.AspNetCore&version=2.51.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 Startup.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.
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddGrpc();
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapGrpcService<GreeterService>();
});
}
}
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 |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp3.0 netcoreapp3.1 |
-
.NETCoreApp 3.0
- Google.Protobuf (>= 3.21.5)
- Grpc.AspNetCore.Server.ClientFactory (>= 2.51.0)
- Grpc.Tools (>= 2.51.0)
-
net5.0
- Google.Protobuf (>= 3.21.5)
- Grpc.AspNetCore.Server.ClientFactory (>= 2.51.0)
- Grpc.Tools (>= 2.51.0)
-
net6.0
- Google.Protobuf (>= 3.21.5)
- Grpc.AspNetCore.Server.ClientFactory (>= 2.51.0)
- Grpc.Tools (>= 2.51.0)
-
net7.0
- Google.Protobuf (>= 3.21.5)
- Grpc.AspNetCore.Server.ClientFactory (>= 2.51.0)
- Grpc.Tools (>= 2.51.0)
NuGet packages (176)
Showing the top 5 NuGet packages that depend on Grpc.AspNetCore:
Package | Downloads |
---|---|
Proto.Remote
Ultra-fast distributed actors for .NET. |
|
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/ |
|
MyJetWallet.Sdk.Grpc
Package Description |
|
MyJetWallet.Sdk.Service
Package Description |
|
Calzolari.Grpc.AspNetCore.Validation
Request message validator for Grpc.AspNetCore |
GitHub repositories (63)
Showing the top 5 popular GitHub repositories that depend on Grpc.AspNetCore:
Repository | Stars |
---|---|
dotnet/efcore
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
|
|
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
|
|
dotnet/runtime
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
|
|
EventStore/EventStore
The stream database optimised for event sourcing
|
|
grpc/grpc-dotnet
gRPC for .NET
|
Version | Downloads | Last updated |
---|---|---|
2.51.0 | 155,302 | 1/2/2023 |
2.51.0-pre1 | 3,258 | 12/7/2022 |
2.50.0 | 306,048 | 11/17/2022 |
2.50.0-pre1 | 4,297 | 11/3/2022 |
2.49.0 | 832,256 | 9/26/2022 |
2.49.0-pre1 | 1,697 | 9/1/2022 |
2.48.0 | 473,940 | 8/24/2022 |
2.48.0-pre1 | 1,491 | 8/17/2022 |
2.47.0 | 672,453 | 7/3/2022 |
2.47.0-pre1 | 1,635 | 6/23/2022 |
2.46.0 | 1,081,247 | 5/13/2022 |
2.46.0-pre1 | 1,570 | 4/28/2022 |
2.45.0 | 757,996 | 4/19/2022 |
2.45.0-pre1 | 2,512 | 4/7/2022 |
2.44.0 | 688,210 | 3/17/2022 |
2.44.0-pre1 | 17,160 | 3/9/2022 |
2.43.0 | 424,765 | 2/25/2022 |
2.43.0-pre1 | 6,693 | 1/28/2022 |
2.42.0 | 983,559 | 1/19/2022 |
2.42.0-pre1 | 6,606 | 12/30/2021 |
2.41.0 | 911,219 | 12/7/2021 |
2.41.0-pre1 | 13,998 | 11/12/2021 |
2.40.0 | 2,102,882 | 10/5/2021 |
2.40.0-pre1 | 3,247 | 9/9/2021 |
2.39.0 | 879,669 | 8/18/2021 |
2.39.0-pre1 | 3,565 | 8/6/2021 |
2.38.0 | 1,165,937 | 6/11/2021 |
2.38.0-pre1 | 562 | 6/4/2021 |
2.37.0 | 880,585 | 4/20/2021 |
2.37.0-pre1 | 313 | 4/14/2021 |
2.36.0 | 464,881 | 3/17/2021 |
2.36.0-pre1 | 850 | 3/9/2021 |
2.35.0 | 556,912 | 2/4/2021 |
2.35.0-pre1 | 1,329 | 1/26/2021 |
2.34.0 | 1,320,559 | 12/11/2020 |
2.34.0-pre1 | 2,531 | 12/1/2020 |
2.33.1 | 716,522 | 10/28/2020 |
2.33.1-pre1 | 629 | 10/22/2020 |
2.32.0 | 724,759 | 10/5/2020 |
2.32.0-pre1 | 12,669 | 9/8/2020 |
2.31.0 | 456,930 | 8/14/2020 |
2.31.0-pre2 | 747 | 8/3/2020 |
2.30.0 | 201,888 | 7/16/2020 |
2.30.0-pre1 | 2,349 | 6/17/2020 |
2.29.0 | 420,253 | 5/27/2020 |
2.29.0-pre1 | 2,413 | 5/15/2020 |
2.28.0 | 475,531 | 4/9/2020 |
2.28.0-pre2 | 15,010 | 3/11/2020 |
2.28.0-pre1 | 5,827 | 3/3/2020 |
2.27.0 | 1,299,956 | 2/7/2020 |
2.27.0-pre1 | 5,769 | 1/24/2020 |
2.26.0 | 292,961 | 12/19/2019 |
2.26.0-pre1 | 567 | 12/10/2019 |
2.25.0 | 905,014 | 11/7/2019 |
2.25.0-pre1 | 549 | 11/1/2019 |
2.24.0 | 283,492 | 10/21/2019 |
2.24.0-pre1 | 959 | 10/9/2019 |
2.23.2 | 186,241 | 9/20/2019 |
0.2.23-pre2 | 4,275 | 9/6/2019 |
0.2.23-pre1 | 4,616 | 8/21/2019 |
0.1.22-pre3 | 6,086 | 7/30/2019 |
0.1.22-pre2 | 9,938 | 7/2/2019 |