TCIS.Http.Refit
1.1.3
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.Refit --version 1.1.3
NuGet\Install-Package TCIS.Http.Refit -Version 1.1.3
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.Refit" Version="1.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TCIS.Http.Refit" Version="1.1.3" />
<PackageReference Include="TCIS.Http.Refit" />
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.Refit --version 1.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TCIS.Http.Refit, 1.1.3"
#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.Refit@1.1.3
#: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.Refit&version=1.1.3
#tool nuget:?package=TCIS.Http.Refit&version=1.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
TCIS.Http.Refit
Strongly integrates the Refit library with TCIS's standard HTTP infrastructure, providing Typed Client REST APIs pre-configured with Polly Resilience mechanisms and automatic Context Propagation (propagating CorrelationId, TenantId).
📦 Installation
dotnet add package TCIS.Http.Refit
🚀 Usage
Register Refit Client (Program.cs)
Ensure you have declared your Refit interface (e.g., IMyRefitClient).
using TCIS.Http.Refit.Extensions;
var builder = WebApplication.CreateBuilder(args);
// Declare a Refit Client, the library will automatically attach:
// 1. Polly Resilience
// 2. Context Propagation
builder.Services.AddTRefitClient<IMyRefitClient>("https://api.example.com");
var app = builder.Build();
app.Run();
⚙️ Core Components
AddTRefitClient<TInterface>: Initializes the Refit Client, sets the BaseAddress, and automatically callsAddTResilienceHandler()andAddTContextPropagation()from the coreTCIS.Httppackage.
| 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
- Elastic.CommonSchema (>= 8.11.0)
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.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)
- Refit (>= 8.0.0)
- Refit.HttpClientFactory (>= 8.0.0)
- System.Diagnostics.DiagnosticSource (>= 10.0.0)
- System.Text.Encodings.Web (>= 9.0.0)
- System.Text.Json (>= 9.0.0)
- System.Threading.Channels (>= 8.0.0)
- TCIS.Http (>= 1.1.3)
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.1.4-rc.1 | 56 | 11/17/2026 |
| 1.1.3 | 93 | 11/11/2026 |
| 1.1.2 | 98 | 11/10/2026 |
| 1.1.1 | 98 | 11/9/2026 |
| 1.1.0 | 95 | 11/7/2026 |
| 1.0.9 | 103 | 11/5/2026 |
| 1.0.9-rc.2 | 61 | 11/5/2026 |
| 1.0.9-rc.1 | 65 | 11/4/2026 |
| 1.0.8 | 100 | 11/3/2026 |
| 1.0.8-rc.11 | 67 | 10/30/2026 |
| 1.0.8-rc.10 | 62 | 10/30/2026 |
| 1.0.8-rc.9 | 68 | 10/30/2026 |
| 1.0.8-rc.8 | 74 | 10/29/2026 |
| 1.0.8-rc.7 | 65 | 10/27/2026 |
| 1.0.8-rc.6 | 74 | 10/27/2026 |
| 1.0.8-rc.5 | 64 | 10/23/2026 |
| 1.0.8-rc.4 | 74 | 10/23/2026 |
| 1.0.8-rc.3 | 71 | 10/23/2026 |
| 1.0.8-rc.2 | 68 | 10/22/2026 |
| 1.0.8-rc.1 | 65 | 10/22/2026 |
Loading failed