Grpc.AspNetCore.Server 2.46.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Grpc.AspNetCore.Server --version 2.46.0
NuGet\Install-Package Grpc.AspNetCore.Server -Version 2.46.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Grpc.AspNetCore.Server" Version="2.46.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Grpc.AspNetCore.Server --version 2.46.0
#r "nuget: Grpc.AspNetCore.Server, 2.46.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Grpc.AspNetCore.Server as a Cake Addin
#addin nuget:?package=Grpc.AspNetCore.Server&version=2.46.0

// Install Grpc.AspNetCore.Server as a Cake Tool
#tool nuget:?package=Grpc.AspNetCore.Server&version=2.46.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.

Product 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 was computed.  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 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 is compatible.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (99)

Showing the top 5 NuGet packages that depend on Grpc.AspNetCore.Server:

Package Downloads
Grpc.AspNetCore.Server.ClientFactory The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

HttpClientFactory integration the for gRPC .NET client when running in ASP.NET Core

Grpc.AspNetCore.Server.Reflection The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Automatic discovery of services for Grpc.Reflection

Pulumi The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

The Pulumi .NET SDK lets you write cloud programs in C#, F#, and VB.NET.

protobuf-net.Grpc.AspNetCore The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Package Description

prometheus-net.AspNetCore.Grpc The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,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
FastEndpoints/FastEndpoints
A light-weight REST API development framework for ASP.NET 6 and newer.
Cysharp/MagicOnion
Unified Realtime/API framework for .NET platform and Unity.
Version Downloads Last updated
2.62.0-pre1 1,272 3/8/2024
2.61.0 407,038 2/22/2024
2.61.0-pre1 9,616 2/8/2024
2.60.0 972,739 1/3/2024
2.60.0-pre1 9,330 12/14/2023
2.59.0 1,572,065 11/8/2023
2.59.0-pre1 6,026 10/27/2023
2.58.0 520,976 10/19/2023
2.58.0-pre1 29,864 10/9/2023
2.57.0 1,392,677 9/6/2023
2.57.0-pre1 5,074 8/31/2023
2.56.0 379,921 8/25/2023
2.56.0-pre2 4,860 8/16/2023
2.56.0-pre1 5,067 8/3/2023
2.55.0 1,785,596 7/4/2023
2.55.0-pre1 5,939 6/23/2023
2.54.0 1,069,153 6/15/2023
2.54.0-pre1 11,259 5/25/2023
2.53.0 1,708,993 5/5/2023
2.53.0-pre1 13,713 4/12/2023
2.52.0 2,134,329 3/15/2023
2.52.0-pre1 9,296 3/3/2023
2.51.0 3,586,593 1/2/2023
2.51.0-pre1 7,400 12/7/2022
2.50.0 1,672,281 11/17/2022
2.50.0-pre1 15,388 11/3/2022
2.49.0 6,663,226 9/26/2022
2.49.0-pre1 12,801 9/1/2022
2.48.0 2,051,399 8/24/2022
2.48.0-pre1 5,091 8/17/2022
2.47.0 2,391,171 7/3/2022
2.47.0-pre1 5,633 6/23/2022
2.46.0 2,585,249 5/13/2022
2.46.0-pre1 4,741 4/28/2022
2.45.0 1,592,413 4/19/2022
2.45.0-pre1 5,536 4/7/2022
2.44.0 1,694,866 3/17/2022
2.44.0-pre1 20,657 3/9/2022
2.43.0 969,153 2/25/2022
2.43.0-pre1 23,331 1/28/2022
2.42.0 2,380,459 1/19/2022
2.42.0-pre1 10,390 12/30/2021
2.41.0 1,435,516 12/7/2021
2.41.0-pre1 20,297 11/12/2021
2.40.0 4,751,149 10/5/2021
2.40.0-pre1 6,782 9/9/2021
2.39.0 1,543,597 8/18/2021
2.39.0-pre1 5,935 8/6/2021
2.38.0 1,975,114 6/11/2021
2.38.0-pre1 2,466 6/4/2021
2.37.0 2,825,190 4/20/2021
2.37.0-pre1 2,182 4/14/2021
2.36.0 2,239,865 3/17/2021
2.36.0-pre1 3,623 3/9/2021
2.35.0 810,572 2/4/2021
2.35.0-pre1 3,382 1/26/2021
2.34.0 2,631,070 12/11/2020
2.34.0-pre1 4,983 12/1/2020
2.33.1 1,734,079 10/28/2020
2.33.1-pre1 2,487 10/22/2020
2.32.0 1,194,284 10/5/2020
2.32.0-pre1 14,814 9/8/2020
2.31.0 604,909 8/14/2020
2.31.0-pre2 2,750 8/3/2020
2.30.0 442,656 7/16/2020
2.30.0-pre1 13,676 6/17/2020
2.29.0 834,396 5/27/2020
2.29.0-pre1 5,082 5/15/2020
2.28.0 2,282,514 4/9/2020
2.28.0-pre2 22,985 3/11/2020
2.28.0-pre1 7,933 3/3/2020
2.27.0 1,580,708 2/7/2020
2.27.0-pre1 9,702 1/24/2020
2.26.0 383,364 12/19/2019
2.26.0-pre1 2,435 12/10/2019
2.25.0 1,050,469 11/7/2019
2.25.0-pre1 2,455 11/1/2019
2.24.0 328,364 10/21/2019
2.24.0-pre1 3,189 10/9/2019
2.23.2 253,813 9/20/2019
0.2.23-pre2 11,837 9/6/2019
0.2.23-pre1 11,265 8/21/2019
0.1.22-pre3 9,529 7/30/2019
0.1.22-pre2 13,991 7/2/2019
0.1.22-pre1 7,016 6/17/2019
0.1.21-pre1 15,209 6/4/2019
0.1.20-pre1 12,096 4/9/2019
0.1.19-pre1 5,638 2/21/2019