Sign in Sign up
nuget

Onspay.Infrastructure.ModuleClient

Refit-based typed HTTP client registration for platform module-to-module calls (AddModuleClient<TApiInterface>) AND tenant-configured external integrations (AddExternalClient<TApiInterface>). Automatically chains Onspay.AspNetCore's CorrelationIdDelegatingHandler/TenantIdDelegatingHandler/RequestResponseLoggingDelegatingHandler so every outbound call carries X-Correlation-Id/X-Tenant-Id and is logged without the caller setting any of that up by hand. AddExternalClient additionally resolves BaseUrl/AuthType/AuthSecret/TimeoutMilliseconds per-call from Onspay.Infrastructure.Tenancy's ITenantClientEndpointResolver for the ambient tenant. Also provides ApiResponse<T>/ApiException/TenantClientEndpointNotConfiguredException to Result<T> unwrapping so Application-layer code never has to know whether data came from this module's own DB, another module's API, or a tenant's own external system.

nuget View on Nuget

Activity

Latest release
3w ago
Total releases
32
Cadence
~daily
Last 12 months
32

Details

License
MIT
First release
Aug 17, 2026
Releases
Version Released
1.5.5 patch
1.5.4 patch
1.5.3 patch
1.5.2 patch
1.5.1 minor
1.4.2 patch
1.4.1 patch
1.3.15 patch
1.4.0 minor
1.3.14 patch
1.3.13 patch
1.3.11 patch
1.3.10 patch
1.3.8 patch
1.3.7 patch
1.3.6 patch
1.3.4 patch
1.3.3 patch
1.3.2 patch
1.3.1 patch
1.3.0 minor
1.2.7 patch
1.2.6 patch
1.2.5 patch
1.2.4 patch
1.2.3 patch
1.2.2 patch
1.2.1 patch
1.2.0 minor
1.1.2 patch
1.1.1 patch
1.1.0 initial