VOOZH about

URL: https://www.nuget.org/packages/Grpc.Net.ClientFactory/

⇱ NuGet Gallery | Grpc.Net.ClientFactory 2.80.0




👁 Image
Grpc.Net.ClientFactory 2.80.0

Prefix Reserved
dotnet add package Grpc.Net.ClientFactory --version 2.80.0
 
 
NuGet\Install-Package Grpc.Net.ClientFactory -Version 2.80.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.Net.ClientFactory" Version="2.80.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Grpc.Net.ClientFactory" Version="2.80.0" />
 
Directory.Packages.props
<PackageReference Include="Grpc.Net.ClientFactory" />
 
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 Grpc.Net.ClientFactory --version 2.80.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Grpc.Net.ClientFactory, 2.80.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 Grpc.Net.ClientFactory@2.80.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=Grpc.Net.ClientFactory&version=2.80.0
 
Install as a Cake Addin
#tool nuget:?package=Grpc.Net.ClientFactory&version=2.80.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Grpc.Net.ClientFactory

gRPC integration with HttpClientFactory offers a centralized way to create gRPC clients. It can be used as an alternative to configuring stand-alone gRPC client instances.

The factory offers the following benefits:

  • Provides a central location for configuring logical gRPC client instances
  • Manages the lifetime of the underlying HttpClientMessageHandler
  • Automatic propagation of deadline and cancellation in an ASP.NET Core gRPC service

Register gRPC clients

To register a gRPC client, the generic AddGrpcClient extension method can be used within Startup.ConfigureServices, specifying the gRPC typed client class and service address:

services.AddGrpcClient<Greeter.GreeterClient>(o =>
{
 o.Address = new Uri("https://localhost:5001");
});

The gRPC client type is registered as transient with dependency injection (DI). The client can now be injected and consumed directly in types created by DI. ASP.NET Core MVC controllers, SignalR hubs and gRPC services are places where gRPC clients can automatically be injected:

public class AggregatorService : Aggregator.AggregatorBase
{
 private readonly Greeter.GreeterClient _client;

 public AggregatorService(Greeter.GreeterClient client)
 {
 _client = client;
 }

 public override async Task SayHellos(HelloRequest request,
 IServerStreamWriter<HelloReply> responseStream, ServerCallContext context)
 {
 // Forward the call on to the greeter service
 using (var call = _client.SayHellos(request))
 {
 await foreach (var response in call.ResponseStream.ReadAllAsync())
 {
 await responseStream.WriteAsync(response);
 }
 }
 }
}

Links

Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 was computed.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 is compatible. 
.NET Framework net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (307)

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

Package Downloads
Grpc.AspNetCore.Server.ClientFactory

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

Microsoft.Azure.Functions.Worker.Grpc

This library provides gRPC support for Azure Functions .NET Worker communication with the Azure Functions Host.

Microsoft.Azure.Functions.Worker.Extensions.Rpc

Contains types to facilitate RPC communication between a worker extension and the functions host.

Aspire.Hosting

Core abstractions for the Aspire application model.

CouchbaseNetClient

The Official Couchbase .NET SDK.

GitHub repositories (43)

Showing the top 20 popular GitHub repositories that depend on Grpc.Net.ClientFactory:

Repository Stars
microsoft/semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
dotnet/eShop
A reference .NET application implementing an eCommerce site
microsoft/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
kurrent-io/KurrentDB
KurrentDB is a database that's engineered for modern software applications and event-driven architectures. Its event-native design simplifies data modeling and preserves data integrity while the integrated streaming engine solves distributed messaging challenges and ensures data consistency.
JasperFx/wolverine
Supercharged .NET server side development!
sipsorcery-org/sipsorcery
A WebRTC, SIP and VoIP library for C# and .NET. Designed for real-time communications apps.
AlphaYu/adnc
A pragmatic .NET 8 framework for modular monoliths to evolve seamlessly into distributed microservices.
meysamhadeli/booking-microservices
A practical microservices with the latest technologies and architectures like Vertical Slice Architecture, Event Sourcing, CQRS, DDD, gRpc, MongoDB, RabbitMq, Masstransit, and Aspire in .Net 10.
dapr/dotnet-sdk
Dapr SDK for .NET
microsoft/aspire-samples
Browse the sample apps demonstrating Aspire integration across C#, JavaScript, TypeScript, Python, Go, containers, databases, cloud, AI, and observability scenarios.
desenvolvedor-io/dev-store
A microservices e-commerce reference application built with ASP.NET 9
mehdihadeli/food-delivery-microservices
🍔 A practical and cloud-native food delivery microservices, built with .Net Aspire, .Net 9, MassTransit, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
protobuf-net/protobuf-net.Grpc
GRPC bindings for protobuf-net and grpc-dotnet
abpframework/eShopOnAbp
Reference microservice solution built with the ABP Framework and .NET, runs on Kubernetes with Helm configuration, includes API Gateways, Angular and ASP.NET Core MVC applications, PostgreSQL and MongoDB databases
csharpfritz/csharp_with_csharpfritz
Show notes, slides, and samples from the CSharp with CSharpFritz show
elastic/apm-agent-dotnet
microsoft/RockPaperScissorsLizardSpock
Rock, Paper, Scissors, Lizard, Spock - Sample Application
ardalis/DesignPatternsInCSharp
Samples associated with Pluralsight design patterns in c# courses.
meysamhadeli/booking-modular-monolith
A practical Modular Monolith architecture with the latest technologies and architecture like Vertical Slice Architecture, Event Driven Architecture, CQRS, DDD, gRpc, Masstransit, and Aspire in .Net 10.
Version Downloads Last Updated
2.80.0 1,854,300 4/30/2026
2.80.0-pre1 1,968 4/1/2026
2.76.0 9,263,126 12/19/2025
2.76.0-pre1 10,499 11/13/2025
2.71.0 24,199,585 4/25/2025
2.71.0-pre1 1,341 4/16/2025
2.70.0 4,836,738 3/10/2025
2.70.0-pre1 3,382 2/26/2025
2.67.0 11,014,133 11/21/2024
2.67.0-pre1 15,598 10/22/2024
2.66.0 12,511,248 9/20/2024
2.66.0-pre1 9,108 9/6/2024
2.65.0 41,759,927 7/27/2024
2.65.0-pre1 2,968 7/20/2024
2.64.0 1,975,168 7/19/2024
2.64.0-pre1 35,212 7/15/2024
2.63.0 5,958,418 5/24/2024
2.63.0-pre1 22,108 5/8/2024
2.62.0 6,309,557 3/29/2024
2.62.0-pre1 5,360 3/8/2024
Loading failed