TCIS.Http.Grpc.Consul
1.0.0-rc.22
This is a prerelease version of TCIS.Http.Grpc.Consul.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package TCIS.Http.Grpc.Consul --version 1.0.0-rc.22
NuGet\Install-Package TCIS.Http.Grpc.Consul -Version 1.0.0-rc.22
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="TCIS.Http.Grpc.Consul" Version="1.0.0-rc.22" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TCIS.Http.Grpc.Consul" Version="1.0.0-rc.22" />
<PackageReference Include="TCIS.Http.Grpc.Consul" />
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 TCIS.Http.Grpc.Consul --version 1.0.0-rc.22
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TCIS.Http.Grpc.Consul, 1.0.0-rc.22"
#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 TCIS.Http.Grpc.Consul@1.0.0-rc.22
#: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=TCIS.Http.Grpc.Consul&version=1.0.0-rc.22&prerelease
#tool nuget:?package=TCIS.Http.Grpc.Consul&version=1.0.0-rc.22&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
TCIS.Http.Grpc.Consul
An extension library for gRPC Client, providing automatic Service Discovery and Client-Side Load Balancing (Round-Robin) through the Consul system.
📦 Installation
dotnet add package TCIS.Http.Grpc.Consul
🚀 Usage
1. Register Consul Configuration (Program.cs)
You need to register the Consul Discovery infrastructure to initialize IConsulClient and ConsulResolverFactory.
using TCIS.Http.Grpc.Consul.Extensions;
var builder = WebApplication.CreateBuilder(args);
// Register Discovery from configuration
builder.Services.AddTCISConsulGrpcDiscovery(options =>
{
options.ConsulAddress = builder.Configuration["Consul:Address"] ?? "http://localhost:8500";
});
// Declare a gRPC client pointing to a service name on Consul
// The "consul://" scheme will automatically use ConsulResolverFactory to resolve the Endpoint
builder.Services.AddTCISConsulGrpcClient<MyService.MyServiceClient>("my-grpc-service");
var app = builder.Build();
app.Run();
⚙️ Core Components
AddTCISConsulGrpcDiscovery: RegistersIConsulClientandConsulResolverFactory. SupportsTCISConsulOptionsconfiguration.AddTCISConsulGrpcClient<TClient>: Registers GrpcClient with automaticconsul://scheme attachment, integrating Client-Side Load Balancing (RoundRobin). Can chainAddTResilienceHandlerif Resilience (Polly) features are needed.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Consul (>= 1.6.10.9)
- Elastic.CommonSchema (>= 9.0.0)
- FluentValidation (>= 11.11.0)
- FluentValidation.AspNetCore (>= 11.3.0)
- FluentValidation.DependencyInjectionExtensions (>= 11.11.0)
- Google.Protobuf (>= 3.28.2)
- Grpc.AspNetCore (>= 2.66.0)
- Grpc.Net.Client (>= 2.66.0)
- Grpc.Net.ClientFactory (>= 2.66.0)
- Grpc.Tools (>= 2.66.0)
- Microsoft.Extensions.Configuration (>= 9.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.0)
- Microsoft.Extensions.DependencyInjection (>= 9.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 9.0.0)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Http (>= 9.0.0)
- Microsoft.Extensions.Http.Resilience (>= 9.1.0)
- Microsoft.Extensions.Logging (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Options (>= 9.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.0.0)
- Polly (>= 8.5.1)
- TCIS.Http.Grpc (>= 1.0.0-rc.22)
- TCIS.Logging.Abstractions (>= 1.0.0-rc.22)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-rc.33 | 44 | 8/21/2026 |
| 1.0.0-rc.32 | 45 | 8/21/2026 |
| 1.0.0-rc.31 | 48 | 8/21/2026 |
| 1.0.0-rc.30 | 51 | 8/21/2026 |
| 1.0.0-rc.29 | 48 | 8/21/2026 |
| 1.0.0-rc.28 | 47 | 8/21/2026 |
| 1.0.0-rc.27 | 48 | 8/21/2026 |
| 1.0.0-rc.26 | 49 | 8/20/2026 |
| 1.0.0-rc.25 | 48 | 8/20/2026 |
| 1.0.0-rc.24 | 53 | 8/20/2026 |
| 1.0.0-rc.23 | 49 | 8/20/2026 |
| 1.0.0-rc.22 | 52 | 8/19/2026 |
| 1.0.0-rc.21 | 51 | 8/19/2026 |
| 1.0.0-rc.20 | 61 | 8/18/2026 |
| 1.0.0-rc.19 | 64 | 8/13/2026 |
| 1.0.0-rc.18 | 53 | 8/13/2026 |
| 1.0.0-rc.17 | 53 | 8/13/2026 |
| 1.0.0-rc.16 | 51 | 8/13/2026 |
| 1.0.0-rc.15 | 51 | 8/12/2026 |
| 1.0.0-rc.14 | 60 | 8/12/2026 |
Loading failed