![]() |
VOOZH | about |
dotnet add package Rystem.RepositoryFramework.Api.Client --version 10.0.3
NuGet\Install-Package Rystem.RepositoryFramework.Api.Client -Version 10.0.3
<PackageReference Include="Rystem.RepositoryFramework.Api.Client" Version="10.0.3" />
<PackageVersion Include="Rystem.RepositoryFramework.Api.Client" Version="10.0.3" />Directory.Packages.props
<PackageReference Include="Rystem.RepositoryFramework.Api.Client" />Project file
paket add Rystem.RepositoryFramework.Api.Client --version 10.0.3
#r "nuget: Rystem.RepositoryFramework.Api.Client, 10.0.3"
#:package Rystem.RepositoryFramework.Api.Client@10.0.3
#addin nuget:?package=Rystem.RepositoryFramework.Api.Client&version=10.0.3Install as a Cake Addin
#tool nuget:?package=Rystem.RepositoryFramework.Api.Client&version=10.0.3Install as a Cake Tool
You can add a client for a specific url
builder.Services.AddRepository<User, string>(builder =>
{
builder
.WithApiClient()
.WithHttpClient("localhost:7058");
});
You may add a Polly policy to your api client for example:
var retryPolicy = HttpPolicyExtensions
.HandleTransientHttpError()
.Or<TimeoutRejectedException>()
.RetryAsync(3);
builder.Services.AddRepository<User, string>(builder =>
{
builder
.WithApiClient()
.WithHttpClient("localhost:7058")
.ClientBuilder
.AddPolicyHandler(retryPolicy);
});
and use it in DI with
IRepository<User, string> repository
In DI you install the services
services.AddCommand<User, string>(builder => {
builder
.WithApiClient()
.WithHttpClient("localhost:7058");
});
services.AddQuery<User, string>(builder => {
builder
.WithApiClient()
.WithHttpClient("localhost:7058");
});
And you may inject the objects
ICommand<User, string> command
IQuery<User, string> command
In DI you install the services with a bool key for example.
services.AddRepository<User, bool>(builder => {
builder
.WithApiClient()
.WithHttpClient("localhost:7058");
});
services.AddCommand<User, bool>(builder => {
builder
.WithApiClient()
.WithHttpClient("localhost:7058");
});
services.AddQuery<User, bool>(builder => {
builder
.WithApiClient()
.WithHttpClient("localhost:7058");
});
And you may inject the objects
IRepository<User, string> repository
ICommand<User, string> command
IQuery<User, string> command
You may add a custom interceptor for every request for every model
public static IServiceCollection AddApiClientInterceptor<TInterceptor>(this IServiceCollection services,
ServiceLifetime serviceLifetime = ServiceLifetime.Scoped)
where TInterceptor : class, IRepositoryClientInterceptor
or a specific interceptor for each model
public static IServiceCollection AddApiClientInterceptor<TInterceptor>(this IServiceCollection services,
ServiceLifetime serviceLifetime = ServiceLifetime.Scoped)
where TInterceptor : class, IRepositoryClientInterceptor
or for a string as default TKey
public static RepositorySettings<T, TKey> AddApiClientSpecificInterceptor<T, TKey, TInterceptor>(
this RepositorySettings<T, TKey> settings,
ServiceLifetime serviceLifetime = ServiceLifetime.Scoped)
where TInterceptor : class, IRepositoryClientInterceptor<T>
where TKey : notnull
Maybe you can use it to add a token as JWT o another pre-request things.
You may use the default interceptor to deal with the identity manager in .Net DI.
builder.Services.AddDefaultAuthorizationInterceptorForApiHttpClient();
with package
or if you need to use in Wasm blazor use with
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 2 NuGet packages that depend on Rystem.RepositoryFramework.Api.Client:
| Package | Downloads |
|---|---|
|
Rystem.RepositoryFramework.Api.Client.Authentication.BlazorServer
Rystem.RepositoryFramework allows you to use correctly concepts like repository pattern, CQRS and DDD. You have interfaces for your domains, auto-generated api, auto-generated HttpClient to simplify connection "api to front-end", a functionality for auto-population in memory of your models, a functionality to simulate exceptions and waiting time from external sources to improve your implementation/business test and load test. |
|
|
Rystem.RepositoryFramework.Api.Client.Authentication.BlazorWasm
Rystem.RepositoryFramework allows you to use correctly concepts like repository pattern, CQRS and DDD. You have interfaces for your domains, auto-generated api, auto-generated HttpClient to simplify connection "api to front-end", a functionality for auto-population in memory of your models, a functionality to simulate exceptions and waiting time from external sources to improve your implementation/business test and load test. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.8 | 5,603 | 5/13/2026 |
| 10.0.7 | 207 | 3/26/2026 |
| 10.0.6 | 433,711 | 3/3/2026 |
| 10.0.5 | 218 | 2/22/2026 |
| 10.0.4 | 231 | 2/9/2026 |
| 10.0.3 | 147,997 | 1/28/2026 |
| 10.0.1 | 209,181 | 11/12/2025 |
| 9.1.3 | 411 | 9/2/2025 |
| 9.1.2 | 764,663 | 5/29/2025 |
| 9.1.1 | 97,928 | 5/2/2025 |
| 9.0.32 | 186,722 | 4/15/2025 |
| 9.0.31 | 5,971 | 4/2/2025 |
| 9.0.30 | 88,927 | 3/26/2025 |
| 9.0.29 | 9,132 | 3/18/2025 |
| 9.0.28 | 321 | 3/17/2025 |
| 9.0.27 | 316 | 3/16/2025 |
| 9.0.26 | 353 | 3/13/2025 |
| 9.0.25 | 52,197 | 3/9/2025 |
| 9.0.21 | 463 | 3/6/2025 |
| 9.0.20 | 19,695 | 3/6/2025 |