Hexalith.Commons.Http 2.28.2

dotnet add package Hexalith.Commons.Http --version 2.28.2
                    
NuGet\Install-Package Hexalith.Commons.Http -Version 2.28.2
                    
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="Hexalith.Commons.Http" Version="2.28.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Hexalith.Commons.Http" Version="2.28.2" />
                    
Directory.Packages.props
<PackageReference Include="Hexalith.Commons.Http" />
                    
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 Hexalith.Commons.Http --version 2.28.2
                    
#r "nuget: Hexalith.Commons.Http, 2.28.2"
                    
#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 Hexalith.Commons.Http@2.28.2
                    
#: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=Hexalith.Commons.Http&version=2.28.2
                    
Install as a Cake Addin
#tool nuget:?package=Hexalith.Commons.Http&version=2.28.2
                    
Install as a Cake Tool

Hexalith.Commons.Http

Domain-agnostic typed HttpClient dependency-injection registration with endpoint-options validation.

HttpClientRegistration.AddTypedHttpClient<TClient, TImplementation, TOptions>(...) extracts the duplicated AddXxxClient() pattern shared by Hexalith module clients. A domain module supplies only the client interface, the typed implementation, its options type, and an endpoint selector; the helper owns registration, options validation, and the returned IHttpClientBuilder (so callers can chain message handlers such as a bearer-token DelegatingHandler).

Validation

  • The endpoint must be an absolute URI.
  • When requireWebScheme: true, the endpoint must use the http or https scheme.
  • Validation timing is selectable:
    • HttpClientEndpointValidation.OnResolve (default) — lazy, via IOptions<TOptions>.Validate (the Folders/Projects shape).
    • HttpClientEndpointValidation.OnRegistration — eager, throwing InvalidOperationException immediately (the Conversations shape, the stronger guarantee).

Example

services.AddTypedHttpClient<IConversationClient, ConversationClient, ConversationClientOptions>(
    configure,
    static options => options.Endpoint,
    HttpClientEndpointValidation.OnRegistration,
    requireWebScheme: true);
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.
  • net10.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Hexalith.Commons.Http:

Package Downloads
Hexalith.Parties.Client

DAPR-native party management microservice for .NET

Hexalith.Parties.Security

DAPR-native party management microservice for .NET

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.28.2 52 7/16/2026
2.28.1 141 7/12/2026
2.28.0 109 7/9/2026