DevelKit.GrpcEmbed.Client 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package DevelKit.GrpcEmbed.Client --version 1.0.0
                    
NuGet\Install-Package DevelKit.GrpcEmbed.Client -Version 1.0.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="DevelKit.GrpcEmbed.Client" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DevelKit.GrpcEmbed.Client" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="DevelKit.GrpcEmbed.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DevelKit.GrpcEmbed.Client --version 1.0.0
                    
#r "nuget: DevelKit.GrpcEmbed.Client, 1.0.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.
#:package DevelKit.GrpcEmbed.Client@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DevelKit.GrpcEmbed.Client&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=DevelKit.GrpcEmbed.Client&version=1.0.0
                    
Install as a Cake Tool

GrpcEmbed

<p align="center"> <img src="assets/grpcembed-icon.png" width="160" alt="GrpcEmbed icon" /> </p>

Native gRPC for existing ASP.NET Core MVC APIs.

NuGet package: DevelKit.GrpcEmbed.

CI NuGet License

Your controllers. Your contracts. Now gRPC.

GrpcEmbed adds a standard gRPC/Protocol Buffers transport to compatible MVC actions. It does not replace REST, invent an RPC protocol, use JSON in the gRPC path, or require generated protobuf DTOs.

builder.Services.AddControllers();
builder.Services.AddGrpcEmbed();

app.MapControllers();
app.MapGrpcEmbed();

An ordinary UsersController.Get(int id) remains available as GET /api/users/42 and is additionally exposed as /GrpcEmbed.Users/Get.

Client

services.AddGrpcEmbedClient<IUsersApi>(options =>
{
    options.Address = new Uri("https://users-service");
    options.DefaultTimeout = TimeSpan.FromSeconds(10);
    options.TransportMode = GrpcEmbedTransportMode.GrpcOnly;
});

var user = await users.Get(42, cancellationToken);

Schema and reflection are disabled by default for production safety. Enable them explicitly during development:

builder.Services.AddGrpcEmbed(options =>
{
    options.EnableSchemaEndpoint = true;
    options.EnableReflection = true;
    options.SchemaAuthorizationPolicy = "SchemaReaders"; // optional named authorization policy
});

This exposes /_grpcembed/schema.proto, /_grpcembed/descriptor.pb, /_grpcembed/schema.json, a deterministic schema hash at /_grpcembed, and standard grpc.reflection.v1alpha.ServerReflection. Set SchemaManifestPath to a checked-in manifest to detect removed, renumbered, renamed, or type-changed fields during startup. Clients may set ExpectedSchemaHash for strict contract negotiation.

For deliberate schema evolution, use [GrpcFieldNumber(n)] to preserve a field or parameter wire ID across a rename, and [GrpcReservedField(n)] on DTO types when removing fields. Reserved numbers are emitted into both .proto and the binary descriptor set.

Current milestone

The repository contains runtime MVC discovery, cached dynamic contracts and accessors, deterministic field numbers, protobuf-net marshalling, standard native unary gRPC registration, controller DI activation, cancellation, authorization metadata, authorization/resource/action/result/exception filters, parameter and DTO validation, status mapping, schema/descriptor export, reflection, and an interface proxy. MVC binding-source metadata is retained for discovery and schema tooling; values on the gRPC path come from the protobuf request rather than MVC route/query/body value providers.

Version 1 intentionally implements unary RPC only. Custom MVC model binders, formatter-specific results, streaming, trimming and NativeAOT are not supported. Reflection.Emit and DispatchProxy are explicitly annotated with trimming/dynamic-code warnings so unsupported deployments fail visibly during analysis.

Build

dotnet restore GrpcEmbed.sln
dotnet build GrpcEmbed.sln -c Release
dotnet test GrpcEmbed.sln -c Release
dotnet run --project samples/GrpcEmbed.Sample.Server
dotnet run --project samples/GrpcEmbed.Sample.Client -- http://localhost:5001
dotnet run --project benchmarks/GrpcEmbed.Benchmarks -c Release
dotnet run --project benchmarks/GrpcEmbed.Benchmarks -c Release -- --filter *PayloadTransportBenchmarks*
dotnet pack src/GrpcEmbed -c Release -o artifacts/packages
Product Compatible and additional computed target framework versions.
.NET 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.  net8.0 is compatible.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on DevelKit.GrpcEmbed.Client:

Package Downloads
DevelKit.GrpcEmbed

Native gRPC for existing ASP.NET Core MVC APIs. Server and contract client bundle.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.0 44 9/22/2026
2.0.0 46 9/22/2026
1.0.0 89 9/15/2026

Initial stable release: runtime MVC discovery, native unary gRPC, Protocol Buffers, contract clients, schema export, reflection, authorization, validation, and .NET 6-10 support.