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
<PackageReference Include="Hexalith.Commons.Http" Version="2.28.2" />
<PackageVersion Include="Hexalith.Commons.Http" Version="2.28.2" />
<PackageReference Include="Hexalith.Commons.Http" />
paket add Hexalith.Commons.Http --version 2.28.2
#r "nuget: Hexalith.Commons.Http, 2.28.2"
#:package Hexalith.Commons.Http@2.28.2
#addin nuget:?package=Hexalith.Commons.Http&version=2.28.2
#tool nuget:?package=Hexalith.Commons.Http&version=2.28.2
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 thehttporhttpsscheme. - Validation timing is selectable:
HttpClientEndpointValidation.OnResolve(default) — lazy, viaIOptions<TOptions>.Validate(the Folders/Projects shape).HttpClientEndpointValidation.OnRegistration— eager, throwingInvalidOperationExceptionimmediately (the Conversations shape, the stronger guarantee).
Example
services.AddTypedHttpClient<IConversationClient, ConversationClient, ConversationClientOptions>(
configure,
static options => options.Endpoint,
HttpClientEndpointValidation.OnRegistration,
requireWebScheme: true);
| Product | Versions 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. |
-
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.