protobuf-net.Grpc.ClientFactory
1.3.14
Prefix Reserved
dotnet add package protobuf-net.Grpc.ClientFactory --version 1.3.14
NuGet\Install-Package protobuf-net.Grpc.ClientFactory -Version 1.3.14
<PackageReference Include="protobuf-net.Grpc.ClientFactory" Version="1.3.14" />
<PackageVersion Include="protobuf-net.Grpc.ClientFactory" Version="1.3.14" />
<PackageReference Include="protobuf-net.Grpc.ClientFactory" />
paket add protobuf-net.Grpc.ClientFactory --version 1.3.14
#r "nuget: protobuf-net.Grpc.ClientFactory, 1.3.14"
#:package protobuf-net.Grpc.ClientFactory@1.3.14
#addin nuget:?package=protobuf-net.Grpc.ClientFactory&version=1.3.14
#tool nuget:?package=protobuf-net.Grpc.ClientFactory&version=1.3.14
protobuf-net.Grpc.ClientFactory
Registers code-first gRPC clients with dependency injection, on top of
Grpc.Net.ClientFactory — so the service contract interface is injectable, and gets HttpClientFactory's
handler lifetime, logging and resilience along with it.
builder.Services.AddCodeFirstGrpcClient<IMyAmazingService>(options =>
{
options.Address = new Uri("https://localhost:5001");
});
This works like the built-in
AddGrpcClient<T>(...), but additionally
configures the service for protobuf-net.Grpc's code-first style. Then take a dependency on the contract
itself — or on GrpcClientFactory, to resolve services yourself:
public class MyController(IMyAmazingService service) { /* ... */ }
ConfigureCodeFirstGrpcClient<T> does the same for a client builder you already have.
Using a custom protobuf-net model
The default/shared configuration is used unless you register your own. For clients the key service is
ClientFactory; for servers it is BinderConfiguration. Both can come from one model:
var model = RuntimeTypeModel.Create(); // configure the protobuf-net model as needed
var marshallerFactory = ProtoBufMarshallerFactory.Create(model, ProtoBufMarshallerFactory.Options.None);
var binderConfiguration = BinderConfiguration.Create([marshallerFactory]);
services.AddSingleton(binderConfiguration)
.AddSingleton(ClientFactory.Create(binderConfiguration));
More
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 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 was computed. 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 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Grpc.Net.ClientFactory (>= 2.80.0)
- protobuf-net.Grpc (>= 1.3.14)
-
.NETStandard 2.1
- Grpc.Net.ClientFactory (>= 2.80.0)
- protobuf-net.Grpc (>= 1.3.14)
-
net8.0
- Grpc.Net.ClientFactory (>= 2.80.0)
- protobuf-net.Grpc (>= 1.3.14)
NuGet packages (34)
Showing the top 5 NuGet packages that depend on protobuf-net.Grpc.ClientFactory:
| Package | Downloads |
|---|---|
|
Havit.Blazor.Grpc.Client
HAVIT Blazor stack - gRPC Support - client-side |
|
|
Havit.Blazor.Grpc.Client.WebAssembly
HAVIT Blazor stack - gRPC Support - client-side - WebAssembly specific features |
|
|
Synapse.Apis.Management.Grpc.Client
This package contains the GRPC client for the Synapse WFMS |
|
|
Synapse.Apis.Runtime.Grpc.Client
This package contains the GRPC client for the management API of Synapse WFMS |
|
|
GbLib.Base
Base of GbLib packages |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on protobuf-net.Grpc.ClientFactory:
| Repository | Stars |
|---|---|
|
havit/Havit.Blazor
Free Bootstrap 5 components for ASP.NET Blazor + optional enterprise-level stack for Blazor development (gRPC code-first, layered architecture, localization, auth, ...)
|
|
|
serverlessworkflow/synapse
Serverless Workflow Management System (WFMS)
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.3.14 | 0 | 8/20/2026 |
| 1.3.6 | 1,749 | 8/17/2026 |
| 1.3.0 | 132 | 8/16/2026 |
| 1.2.2 | 2,583,854 | 10/14/2024 |
| 1.1.1 | 1,741,580 | 2/2/2023 |
| 1.0.179 | 177,337 | 11/9/2022 |
| 1.0.177 | 70,394 | 9/13/2022 |
| 1.0.152 | 466,216 | 3/19/2021 |
| 1.0.147 | 125,728 | 1/25/2021 |
| 1.0.140 | 124,395 | 12/2/2020 |
| 1.0.136 | 3,825 | 11/14/2020 |
| 1.0.123 | 26,711 | 7/8/2020 |
| 1.0.118 | 911 | 7/6/2020 |
| 1.0.113 | 865 | 7/6/2020 |
| 1.0.110 | 877 | 7/5/2020 |
| 1.0.90 | 1,227 | 6/8/2020 |
| 1.0.81 | 857 | 6/5/2020 |
| 1.0.75 | 870 | 6/2/2020 |