Grpc.AspNetCore.Server
2.53.0
See the version list below for details.
dotnet add package Grpc.AspNetCore.Server --version 2.53.0
NuGet\Install-Package Grpc.AspNetCore.Server -Version 2.53.0
<PackageReference Include="Grpc.AspNetCore.Server" Version="2.53.0" />
paket add Grpc.AspNetCore.Server --version 2.53.0
#r "nuget: Grpc.AspNetCore.Server, 2.53.0"
// Install Grpc.AspNetCore.Server as a Cake Addin
#addin nuget:?package=Grpc.AspNetCore.Server&version=2.53.0
// Install Grpc.AspNetCore.Server as a Cake Tool
#tool nuget:?package=Grpc.AspNetCore.Server&version=2.53.0
Grpc.AspNetCore.Server
Grpc.AspNetCore.Server
is a gRPC server library for .NET.
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 Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. 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. |
.NET Core | netcoreapp3.0 is compatible. netcoreapp3.1 was computed. |
-
.NETCoreApp 3.0
- Grpc.Net.Common (>= 2.53.0)
-
net5.0
- Grpc.Net.Common (>= 2.53.0)
-
net6.0
- Grpc.Net.Common (>= 2.53.0)
-
net7.0
- Grpc.Net.Common (>= 2.53.0)
NuGet packages (89)
Showing the top 5 NuGet packages that depend on Grpc.AspNetCore.Server:
Package | Downloads |
---|---|
Grpc.AspNetCore.Server.ClientFactory
HttpClientFactory integration the for gRPC .NET client when running in ASP.NET Core |
|
Grpc.AspNetCore.Server.Reflection
Automatic discovery of services for Grpc.Reflection |
|
Pulumi
The Pulumi .NET SDK lets you write cloud programs in C#, F#, and VB.NET. |
|
protobuf-net.Grpc.AspNetCore
Package Description |
|
prometheus-net.AspNetCore.Grpc
ASP.NET Core gRPC integration with Prometheus |
GitHub repositories (19)
Showing the top 5 popular GitHub repositories that depend on Grpc.AspNetCore.Server:
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.
|
|
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 2.1, 2.2, 3.1, 5.0, 6.0, 7.0 and 8.0 preview 4 projects you can use. Readme contains explanations on all projects.
|
|
ServiceStack/ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
|
|
grpc/grpc-dotnet
gRPC for .NET
|
|
Cysharp/MagicOnion
Unified Realtime/API framework for .NET platform and Unity.
|
Version | Downloads | Last updated |
---|---|---|
2.54.0-pre1 | 1,233 | 5/25/2023 |
2.53.0 | 160,856 | 5/5/2023 |
2.53.0-pre1 | 3,758 | 4/12/2023 |
2.52.0 | 791,491 | 3/15/2023 |
2.52.0-pre1 | 4,949 | 3/3/2023 |
2.51.0 | 1,496,794 | 1/2/2023 |
2.51.0-pre1 | 5,250 | 12/7/2022 |
2.50.0 | 851,266 | 11/17/2022 |
2.50.0-pre1 | 9,046 | 11/3/2022 |
2.49.0 | 2,138,124 | 9/26/2022 |
2.49.0-pre1 | 6,437 | 9/1/2022 |
2.48.0 | 979,319 | 8/24/2022 |
2.48.0-pre1 | 2,655 | 8/17/2022 |
2.47.0 | 1,320,716 | 7/3/2022 |
2.47.0-pre1 | 2,948 | 6/23/2022 |
2.46.0 | 1,901,885 | 5/13/2022 |
2.46.0-pre1 | 2,378 | 4/28/2022 |
2.45.0 | 1,144,589 | 4/19/2022 |
2.45.0-pre1 | 3,432 | 4/7/2022 |
2.44.0 | 1,248,863 | 3/17/2022 |
2.44.0-pre1 | 18,234 | 3/9/2022 |
2.43.0 | 635,999 | 2/25/2022 |
2.43.0-pre1 | 10,238 | 1/28/2022 |
2.42.0 | 1,605,623 | 1/19/2022 |
2.42.0-pre1 | 7,902 | 12/30/2021 |
2.41.0 | 1,195,596 | 12/7/2021 |
2.41.0-pre1 | 17,523 | 11/12/2021 |
2.40.0 | 3,117,919 | 10/5/2021 |
2.40.0-pre1 | 4,893 | 9/9/2021 |
2.39.0 | 1,267,253 | 8/18/2021 |
2.39.0-pre1 | 4,186 | 8/6/2021 |
2.38.0 | 1,710,133 | 6/11/2021 |
2.38.0-pre1 | 714 | 6/4/2021 |
2.37.0 | 1,599,177 | 4/20/2021 |
2.37.0-pre1 | 450 | 4/14/2021 |
2.36.0 | 1,839,186 | 3/17/2021 |
2.36.0-pre1 | 1,910 | 3/9/2021 |
2.35.0 | 727,274 | 2/4/2021 |
2.35.0-pre1 | 1,607 | 1/26/2021 |
2.34.0 | 2,195,379 | 12/11/2020 |
2.34.0-pre1 | 3,101 | 12/1/2020 |
2.33.1 | 1,445,462 | 10/28/2020 |
2.33.1-pre1 | 767 | 10/22/2020 |
2.32.0 | 1,008,643 | 10/5/2020 |
2.32.0-pre1 | 13,019 | 9/8/2020 |
2.31.0 | 571,184 | 8/14/2020 |
2.31.0-pre2 | 998 | 8/3/2020 |
2.30.0 | 401,573 | 7/16/2020 |
2.30.0-pre1 | 11,938 | 6/17/2020 |
2.29.0 | 775,159 | 5/27/2020 |
2.29.0-pre1 | 3,074 | 5/15/2020 |
2.28.0 | 1,861,586 | 4/9/2020 |
2.28.0-pre2 | 20,966 | 3/11/2020 |
2.28.0-pre1 | 6,066 | 3/3/2020 |
2.27.0 | 1,486,039 | 2/7/2020 |
2.27.0-pre1 | 7,782 | 1/24/2020 |
2.26.0 | 365,880 | 12/19/2019 |
2.26.0-pre1 | 759 | 12/10/2019 |
2.25.0 | 1,040,908 | 11/7/2019 |
2.25.0-pre1 | 734 | 11/1/2019 |
2.24.0 | 304,176 | 10/21/2019 |
2.24.0-pre1 | 1,448 | 10/9/2019 |
2.23.2 | 233,796 | 9/20/2019 |
0.2.23-pre2 | 10,036 | 9/6/2019 |
0.2.23-pre1 | 7,514 | 8/21/2019 |
0.1.22-pre3 | 7,722 | 7/30/2019 |
0.1.22-pre2 | 12,213 | 7/2/2019 |
0.1.22-pre1 | 5,292 | 6/17/2019 |
0.1.21-pre1 | 13,368 | 6/4/2019 |
0.1.20-pre1 | 10,704 | 4/9/2019 |
0.1.19-pre1 | 4,972 | 2/21/2019 |