Grpc.AspNetCore 2.47.0-pre1 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved

.NET 5.0 .NET Core 3.0
This is a prerelease version of Grpc.AspNetCore.
There is a newer version of this package available.
See the version list below for details.
Install-Package Grpc.AspNetCore -Version 2.47.0-pre1
dotnet add package Grpc.AspNetCore --version 2.47.0-pre1
<PackageReference Include="Grpc.AspNetCore" Version="2.47.0-pre1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Grpc.AspNetCore --version 2.47.0-pre1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Grpc.AspNetCore, 2.47.0-pre1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Grpc.AspNetCore as a Cake Addin
#addin nuget:?package=Grpc.AspNetCore&version=2.47.0-pre1&prerelease

// Install Grpc.AspNetCore as a Cake Tool
#tool nuget:?package=Grpc.AspNetCore&version=2.47.0-pre1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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
.NET Core netcoreapp3.0 netcoreapp3.1
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (156)

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

Package Downloads
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/

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

Ultra-fast distributed actors for .NET.

MyJetWallet.Sdk.Service

Package Description

Calzolari.Grpc.AspNetCore.Validation

Request message validator for Grpc.AspNetCore

MyJetWallet.Sdk.Grpc

Package Description

GitHub repositories (51)

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
EventStore/EventStore
The stream database optimised for event sourcing
grpc/grpc-dotnet
gRPC for .NET
Cysharp/MagicOnion
Unified Realtime/API framework for .NET platform and Unity.
Version Downloads Last updated
2.48.0-pre1 109 8/17/2022
2.47.0 146,779 7/3/2022
2.47.0-pre1 1,191 6/23/2022
2.46.0 540,717 5/13/2022
2.46.0-pre1 1,339 4/28/2022
2.45.0 381,756 4/19/2022
2.45.0-pre1 1,902 4/7/2022
2.44.0 455,499 3/17/2022
2.44.0-pre1 5,748 3/9/2022
2.43.0 300,483 2/25/2022
2.43.0-pre1 5,998 1/28/2022
2.42.0 650,290 1/19/2022
2.42.0-pre1 5,809 12/30/2021
2.41.0 700,997 12/7/2021
2.41.0-pre1 13,523 11/12/2021
2.40.0 1,205,163 10/5/2021
2.40.0-pre1 3,156 9/9/2021
2.39.0 673,538 8/18/2021
2.39.0-pre1 3,095 8/6/2021
2.38.0 1,056,408 6/11/2021
2.38.0-pre1 524 6/4/2021
2.37.0 746,131 4/20/2021
2.37.0-pre1 288 4/14/2021
2.36.0 420,110 3/17/2021
2.36.0-pre1 807 3/9/2021
2.35.0 494,722 2/4/2021
2.35.0-pre1 1,249 1/26/2021
2.34.0 1,146,673 12/11/2020
2.34.0-pre1 2,433 12/1/2020
2.33.1 633,635 10/28/2020
2.33.1-pre1 608 10/22/2020
2.32.0 570,514 10/5/2020
2.32.0-pre1 12,614 9/8/2020
2.31.0 428,877 8/14/2020
2.31.0-pre2 702 8/3/2020
2.30.0 169,219 7/16/2020
2.30.0-pre1 2,293 6/17/2020
2.29.0 371,032 5/27/2020
2.29.0-pre1 2,084 5/15/2020
2.28.0 417,032 4/9/2020
2.28.0-pre2 14,980 3/11/2020
2.28.0-pre1 5,660 3/3/2020
2.27.0 1,215,996 2/7/2020
2.27.0-pre1 5,395 1/24/2020
2.26.0 287,390 12/19/2019
2.26.0-pre1 546 12/10/2019
2.25.0 901,351 11/7/2019
2.25.0-pre1 526 11/1/2019
2.24.0 257,190 10/21/2019
2.24.0-pre1 936 10/9/2019
2.23.2 174,465 9/20/2019
0.2.23-pre2 4,240 9/6/2019
0.2.23-pre1 4,551 8/21/2019
0.1.22-pre3 6,039 7/30/2019
0.1.22-pre2 9,594 7/2/2019