Grpc.AspNetCore.Web 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.Web.
There is a newer version of this package available.
See the version list below for details.
Install-Package Grpc.AspNetCore.Web -Version 2.47.0-pre1
dotnet add package Grpc.AspNetCore.Web --version 2.47.0-pre1
<PackageReference Include="Grpc.AspNetCore.Web" 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.Web --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.Web, 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.Web as a Cake Addin
#addin nuget:?package=Grpc.AspNetCore.Web&version=2.47.0-pre1&prerelease

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

Grpc.AspNetCore.Web

Grpc.AspNetCore.Web provides middleware that enables ASP.NET Core gRPC services to accept gRPC-Web calls.

In Startup.cs:

public void ConfigureServices(IServiceCollection services)
{
    services.AddGrpc();
    services.AddGrpcWeb(o => o.GrpcWebEnabled = true);
}

public void Configure(IApplicationBuilder app)
{
    app.UseRouting();
    app.UseGrpcWeb();
    app.UseEndpoints(endpoints =>
    {
        endpoints.MapGrpcService<GreeterService>();
    });
}

gRPC-Web can be enabled for all gRPC services by setting GrpcWebOptions.GrpcWebEnabled = true, or enabled on individual services with EnableGrpcWeb():

app.UseEndpoints(endpoints =>
{
    endpoints.MapGrpcService<GreeterService>().EnableGrpcWeb();
});

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.
  • .NETCoreApp 3.0

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.

NuGet packages (8)

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

Package Downloads
Girvs.WebFrameWork

Package Description

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

HAVIT Blazor stack - gRPC Support - server-side

MF40.Silo

Orleans Silo

ElsaDashboard.Backend

Elsa is a set of workflow libraries and tools that enable lean and mean workflowing capabilities in any .NET Core application. This package provides dashboard backend services exposed as gRPC endpoints.

Girvs.Grpc

Package Description

GitHub repositories (6)

Showing the top 5 popular GitHub repositories that depend on Grpc.AspNetCore.Web:

Repository Stars
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 2.1, 2.2, 3.1, 5.0, 6.0 and 7.0 projects you can use. Readme contains explanations on all projects.
grpc/grpc-dotnet
gRPC for .NET
microsoft/RockPaperScissorsLizardSpock
Rock, Paper, Scissors, Lizard, Spock - Sample Application
SteveSandersonMS/BlazeOrbital
Sample application for Blazor WebAssembly on .NET 6
yc-l/yc.boilerplate
YC. Boilerplate is a set of loose coupling, flexible combination, complete functions, convenient development, and reduces the workload of development.
Version Downloads Last updated
2.47.0 18,553 7/3/2022
2.47.0-pre1 127 6/23/2022
2.46.0 41,726 5/13/2022
2.46.0-pre1 202 4/28/2022
2.45.0 98,609 4/19/2022
2.45.0-pre1 401 4/7/2022
2.44.0 51,651 3/17/2022
2.44.0-pre1 137 3/9/2022
2.43.0 35,072 2/25/2022
2.43.0-pre1 1,102 1/28/2022
2.42.0 82,560 1/19/2022
2.42.0-pre1 2,242 12/30/2021
2.41.0 113,114 12/7/2021
2.41.0-pre1 823 11/12/2021
2.40.0 165,249 10/5/2021
2.40.0-pre1 1,504 9/9/2021
2.39.0 79,188 8/18/2021
2.39.0-pre1 971 8/6/2021
2.38.0 205,972 6/11/2021
2.38.0-pre1 274 6/4/2021
2.37.0 106,914 4/20/2021
2.37.0-pre1 203 4/14/2021
2.36.0 74,353 3/17/2021
2.36.0-pre1 603 3/9/2021
2.35.0 42,933 2/4/2021
2.35.0-pre1 362 1/26/2021
2.34.0 82,520 12/11/2020
2.34.0-pre1 348 12/1/2020
2.33.1 34,037 10/28/2020
2.33.1-pre1 356 10/22/2020
2.32.0 7,420 10/5/2020
2.32.0-pre1 1,377 9/8/2020
2.31.0 34,455 8/14/2020
2.31.0-pre2 419 8/3/2020
2.30.0 14,288 7/16/2020
2.30.0-pre1 1,156 6/17/2020
2.29.0 60,868 5/27/2020
2.29.0-pre1 1,874 5/15/2020
2.28.0-pre2 22,302 3/11/2020
2.28.0-pre1 2,994 3/3/2020
2.27.0-pre1 8,578 1/24/2020