TCIS.Http.Grpc 1.0.0-rc.9

This is a prerelease version of TCIS.Http.Grpc.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package TCIS.Http.Grpc --version 1.0.0-rc.9
                    
NuGet\Install-Package TCIS.Http.Grpc -Version 1.0.0-rc.9
                    
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" Version="1.0.0-rc.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TCIS.Http.Grpc" Version="1.0.0-rc.9" />
                    
Directory.Packages.props
<PackageReference Include="TCIS.Http.Grpc" />
                    
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 TCIS.Http.Grpc --version 1.0.0-rc.9
                    
#r "nuget: TCIS.Http.Grpc, 1.0.0-rc.9"
                    
#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@1.0.0-rc.9
                    
#: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&version=1.0.0-rc.9&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TCIS.Http.Grpc&version=1.0.0-rc.9&prerelease
                    
Install as a Cake Tool

TCIS.Http.Grpc

The core gRPC library for the TCIS ecosystem, supporting automatic Context Propagation (IWorkContext) via Metadata (Headers) on both the Server (receiving requests) and Client (sending requests). It integrates basic Load Balancing and Resilience (Polly) when calling gRPC Services.

📦 Installation

dotnet add package TCIS.Http.Grpc

🚀 Usage

1. Register gRPC Server (Program.cs)

Automatically extracts TenantId, User, CorrelationId... from Metadata (sent by the Client) and attaches them to IWorkContext.

using TCIS.Http.Grpc.Extensions;

var builder = WebApplication.CreateBuilder(args);

// Register Server, automatically injects TGrpcServerInterceptor to extract Context
builder.Services.AddTGrpcServer();

var app = builder.Build();
app.MapGrpcService<MyGrpcService>();
app.Run();

2. Register gRPC Client (Program.cs)

When the Server needs to make a gRPC call to another Microservice, the current IWorkContext information is automatically propagated via TGrpcClientInterceptor.

using TCIS.Http.Grpc.Extensions;

var builder = WebApplication.CreateBuilder(args);

// Register GrpcClient to call directly with a fixed Address
builder.Services.AddTGrpcClient<MyService.MyServiceClient>("https://localhost:5001");

// OR: Register multiple clients simultaneously via `appsettings.json` configuration
var clients = new Dictionary<string, Type>
{
    { "MyService", typeof(MyService.MyServiceClient) }
};
builder.Services.AddTGrpcClients(builder.Configuration, clients);

3. gRPC Client Configuration in appsettings.json

Used with the AddTGrpcClients method:

{
  "GrpcConfigs": {
    "MyService": {
      "Url": "https://localhost:5001"
    }
  }
}

⚙️ Core Components

  • AddTGrpcServer: Configures GrpcServiceOptions and adds TGrpcServerInterceptor.
  • AddTGrpcClient<TClient>: Configures GrpcClient with RoundRobin Load Balancing if using consul://, k8s://, dns:// schemes, and adds TGrpcClientInterceptor along with Resilience.
  • AddTGrpcClients: A manager for initializing multiple gRPC clients based on appsettings.json.
Product 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.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on TCIS.Http.Grpc:

Package Downloads
TCIS.Http.Grpc.Consul

TCIS Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. Consul service discovery and load balancing for gRPC clients.

TCIS.Http.Grpc.Kubernetes

TCIS Core Framework is an application framework for building modular, multi-tenant applications on ASP.NET Core. Kubernetes Endpoints API service discovery and load balancing for gRPC clients.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-rc.11 41 7/28/2026
1.0.0-rc.10 60 7/24/2026
1.0.0-rc.9 54 7/21/2026
1.0.0-rc.8 59 7/21/2026
1.0.0-rc.7 55 7/17/2026
1.0.0-rc.6 71 7/7/2026
1.0.0-rc.5 73 7/7/2026
1.0.0-rc.4 71 6/24/2026
1.0.0-rc.2 66 5/12/2026
1.0.0-rc.1 64 5/12/2026