Rystem.RepositoryFramework.Api.Client
6.0.2
See the version list below for details.
dotnet add package Rystem.RepositoryFramework.Api.Client --version 6.0.2
NuGet\Install-Package Rystem.RepositoryFramework.Api.Client -Version 6.0.2
<PackageReference Include="Rystem.RepositoryFramework.Api.Client" Version="6.0.2" />
<PackageVersion Include="Rystem.RepositoryFramework.Api.Client" Version="6.0.2" />
<PackageReference Include="Rystem.RepositoryFramework.Api.Client" />
paket add Rystem.RepositoryFramework.Api.Client --version 6.0.2
#r "nuget: Rystem.RepositoryFramework.Api.Client, 6.0.2"
#:package Rystem.RepositoryFramework.Api.Client@6.0.2
#addin nuget:?package=Rystem.RepositoryFramework.Api.Client&version=6.0.2
#tool nuget:?package=Rystem.RepositoryFramework.Api.Client&version=6.0.2
What is Rystem?
Services extensions
HttpClient to use your API (example)
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
Query and Command
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
Please, use ICommand, IQuery and not ICommandPattern, IQueryPattern
ICommand<User, string> command
IQuery<User, string> command
With a non default key
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
Please, use ICommand, IQuery, IRepository and not ICommandPattern, IQueryPattern, IRepositoryPattern
IRepository<User, string> repository
ICommand<User, string> command
IQuery<User, string> command
Interceptors
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.
Default interceptor for Authentication with JWT
You may use the default interceptor to deal with the identity manager in .Net DI.
builder.Services.AddDefaultAuthorizationInterceptorForApiHttpClient();
with package
RepositoryFramework.Api.Client.Authentication.BlazorServer
or if you need to use in Wasm blazor use with
Rystem.RepositoryFramework.Api.Client.Authentication.BlazorWasm
| 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. |
-
net8.0
- Microsoft.Extensions.Http (>= 8.0.0)
- Microsoft.Extensions.Http.Polly (>= 8.0.2)
- Polly (>= 8.3.1)
- Rystem.RepositoryFramework.Abstractions (>= 6.0.2)
NuGet packages (2)
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. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.1 | 292 | 11/12/2025 |
| 9.1.3 | 322 | 9/2/2025 |
| 9.1.2 | 764,565 | 5/29/2025 |
| 9.1.1 | 97,846 | 5/2/2025 |
| 9.0.32 | 186,642 | 4/15/2025 |
| 9.0.31 | 5,869 | 4/2/2025 |
| 9.0.30 | 88,847 | 3/26/2025 |
| 9.0.29 | 9,055 | 3/18/2025 |
| 9.0.28 | 241 | 3/17/2025 |
| 9.0.27 | 229 | 3/16/2025 |
| 9.0.26 | 272 | 3/13/2025 |
| 9.0.25 | 52,130 | 3/9/2025 |
| 9.0.21 | 386 | 3/6/2025 |
| 9.0.20 | 19,611 | 3/6/2025 |
| 9.0.19 | 314 | 3/6/2025 |
| 9.0.18 | 332 | 3/4/2025 |
| 9.0.17 | 201 | 3/1/2025 |
| 9.0.16 | 215 | 3/1/2025 |
| 9.0.15 | 75,578 | 2/22/2025 |
| 9.0.14 | 22,593 | 2/18/2025 |
| 9.0.13 | 231 | 2/9/2025 |
| 9.0.12 | 217,703 | 1/13/2025 |
| 9.0.11 | 24,072 | 1/9/2025 |
| 9.0.10 | 200 | 1/9/2025 |
| 9.0.9 | 4,061 | 1/7/2025 |
| 9.0.8 | 12,567 | 1/6/2025 |
| 9.0.7 | 192 | 1/6/2025 |
| 9.0.4 | 92,352 | 12/23/2024 |
| 9.0.3 | 219 | 12/22/2024 |
| 9.0.2 | 10,739 | 12/21/2024 |
| 9.0.1 | 1,253 | 12/21/2024 |
| 9.0.0 | 173,107 | 11/16/2024 |
| 9.0.0-rc.1 | 134 | 10/18/2024 |
| 6.2.0 | 219,128 | 10/9/2024 |
| 6.1.1 | 244 | 10/9/2024 |
| 6.1.0 | 48,028 | 9/29/2024 |
| 6.0.24 | 256 | 9/11/2024 |
| 6.0.23 | 340,226 | 7/18/2024 |
| 6.0.21 | 260 | 6/18/2024 |
| 6.0.20 | 727,873 | 6/16/2024 |
| 6.0.19 | 30,517 | 6/14/2024 |
| 6.0.18 | 258 | 6/14/2024 |
| 6.0.17 | 234 | 6/14/2024 |
| 6.0.16 | 50,099 | 6/10/2024 |
| 6.0.15 | 230 | 6/9/2024 |
| 6.0.14 | 94,382 | 5/24/2024 |
| 6.0.13 | 245 | 5/23/2024 |
| 6.0.12 | 246 | 5/23/2024 |
| 6.0.11 | 265 | 5/20/2024 |
| 6.0.9 | 268 | 5/20/2024 |
| 6.0.7 | 256 | 5/18/2024 |
| 6.0.6 | 212 | 5/10/2024 |
| 6.0.5 | 236 | 5/10/2024 |
| 6.0.4 | 549,903 | 4/3/2024 |
| 6.0.3 | 290 | 3/25/2024 |
| 6.0.2 | 393,586 | 3/11/2024 |
| 6.0.0 | 1,170,151 | 11/21/2023 |
| 6.0.0-rc.6 | 186 | 10/25/2023 |
| 6.0.0-rc.5 | 120 | 10/25/2023 |
| 6.0.0-rc.4 | 134 | 10/23/2023 |
| 6.0.0-rc.3 | 140 | 10/19/2023 |
| 6.0.0-rc.2 | 120 | 10/18/2023 |
| 6.0.0-rc.1 | 113 | 10/16/2023 |
| 5.0.20 | 638,810 | 9/25/2023 |
| 5.0.19 | 438 | 9/10/2023 |
| 5.0.18 | 409 | 9/6/2023 |
| 5.0.17 | 370 | 9/6/2023 |
| 5.0.16 | 363 | 9/5/2023 |
| 5.0.15 | 364 | 9/5/2023 |
| 5.0.14 | 368 | 9/5/2023 |
| 5.0.13 | 378 | 9/1/2023 |
| 5.0.12 | 362 | 8/31/2023 |
| 5.0.11 | 340 | 8/30/2023 |
| 5.0.10 | 350 | 8/29/2023 |
| 5.0.9 | 401 | 8/24/2023 |
| 5.0.8 | 398 | 8/24/2023 |
| 5.0.7 | 449,845 | 8/23/2023 |
| 5.0.6 | 17,654 | 8/21/2023 |
| 5.0.5 | 4,444 | 8/21/2023 |
| 5.0.4 | 306 | 8/16/2023 |
| 5.0.3 | 212,597 | 8/2/2023 |
| 5.0.2 | 1,863 | 8/2/2023 |
| 5.0.1 | 11,670 | 8/1/2023 |
| 5.0.0 | 11,982 | 7/31/2023 |
| 4.1.26 | 140,811 | 7/20/2023 |
| 4.1.25 | 24,767 | 7/16/2023 |
| 4.1.24 | 397,971 | 6/13/2023 |
| 4.1.23 | 45,840 | 6/13/2023 |
| 4.1.22 | 129,242 | 5/30/2023 |
| 4.1.21 | 55,562 | 5/20/2023 |
| 4.1.20 | 404,714 | 4/19/2023 |
| 4.1.19 | 95,440 | 3/20/2023 |
| 4.1.18 | 427 | 3/20/2023 |
| 4.1.17 | 423 | 3/16/2023 |
| 4.1.16 | 384 | 3/16/2023 |
| 4.1.15 | 429 | 3/15/2023 |
| 4.1.14 | 1,009 | 3/9/2023 |
| 4.1.13 | 411 | 3/7/2023 |
| 4.1.12 | 549 | 2/10/2023 |
| 4.1.11 | 497 | 1/26/2023 |
| 4.1.10 | 537 | 1/22/2023 |
| 4.1.9 | 452 | 1/20/2023 |
| 4.1.8 | 490 | 1/18/2023 |
| 4.1.7 | 602 | 1/18/2023 |
| 4.1.6 | 473 | 1/17/2023 |
| 4.1.1 | 506 | 1/4/2023 |
| 4.1.0 | 483 | 1/1/2023 |
| 3.1.5 | 485 | 12/21/2022 |
| 3.1.3 | 541 | 12/12/2022 |
| 3.1.2 | 450 | 12/7/2022 |
| 3.1.1 | 468 | 12/7/2022 |
| 3.1.0 | 557 | 12/2/2022 |
| 3.0.29 | 511 | 12/1/2022 |
| 3.0.28 | 498 | 12/1/2022 |
| 3.0.27 | 698 | 11/23/2022 |
| 3.0.25 | 493 | 11/23/2022 |
| 3.0.24 | 554 | 11/18/2022 |
| 3.0.23 | 531 | 11/18/2022 |
| 3.0.22 | 532 | 11/15/2022 |
| 3.0.21 | 549 | 11/14/2022 |
| 3.0.20 | 563 | 11/13/2022 |
| 3.0.19 | 741 | 11/2/2022 |
| 3.0.18 | 562 | 11/2/2022 |
| 3.0.17 | 574 | 10/29/2022 |
| 3.0.16 | 582 | 10/29/2022 |
| 3.0.15 | 596 | 10/29/2022 |
| 3.0.14 | 618 | 10/24/2022 |
| 3.0.13 | 627 | 10/24/2022 |
| 3.0.12 | 680 | 10/17/2022 |
| 3.0.11 | 614 | 10/10/2022 |
| 3.0.10 | 649 | 10/6/2022 |
| 3.0.9 | 592 | 10/6/2022 |
| 3.0.8 | 579 | 10/6/2022 |
| 3.0.7 | 606 | 10/6/2022 |
| 3.0.6 | 602 | 10/5/2022 |
| 3.0.5 | 572 | 10/5/2022 |
| 3.0.4 | 597 | 10/5/2022 |
| 3.0.3 | 671 | 10/3/2022 |
| 3.0.2 | 618 | 9/30/2022 |
| 3.0.1 | 621 | 9/29/2022 |
| 2.0.17 | 647 | 9/29/2022 |
| 2.0.16 | 606 | 9/27/2022 |
| 2.0.15 | 676 | 9/27/2022 |
| 2.0.14 | 705 | 9/26/2022 |
| 2.0.13 | 672 | 9/26/2022 |
| 2.0.12 | 665 | 9/26/2022 |
| 2.0.11 | 633 | 9/25/2022 |
| 2.0.10 | 690 | 9/25/2022 |
| 2.0.9 | 673 | 9/22/2022 |
| 2.0.8 | 628 | 9/22/2022 |
| 2.0.6 | 654 | 9/20/2022 |
| 2.0.5 | 671 | 9/20/2022 |
| 2.0.4 | 628 | 9/20/2022 |
| 2.0.2 | 629 | 9/20/2022 |
| 2.0.1 | 662 | 9/13/2022 |
| 2.0.0 | 649 | 8/19/2022 |
| 1.1.24 | 687 | 7/30/2022 |
| 1.1.23 | 638 | 7/29/2022 |
| 1.1.22 | 663 | 7/29/2022 |
| 1.1.21 | 908 | 7/29/2022 |
| 1.1.20 | 687 | 7/29/2022 |
| 1.1.19 | 701 | 7/27/2022 |
| 1.1.17 | 670 | 7/27/2022 |
| 1.1.16 | 695 | 7/26/2022 |
| 1.1.15 | 661 | 7/25/2022 |
| 1.1.14 | 680 | 7/25/2022 |
| 1.1.13 | 694 | 7/22/2022 |
| 1.1.12 | 654 | 7/19/2022 |
| 1.1.11 | 662 | 7/19/2022 |
| 1.1.10 | 654 | 7/19/2022 |
| 1.1.9 | 679 | 7/19/2022 |
| 1.1.8 | 709 | 7/18/2022 |
| 1.1.7 | 711 | 7/18/2022 |
| 1.1.6 | 675 | 7/18/2022 |
| 1.1.5 | 637 | 7/17/2022 |
| 1.1.4 | 670 | 7/17/2022 |
| 1.1.3 | 707 | 7/17/2022 |
| 1.1.2 | 699 | 7/17/2022 |
| 1.1.0 | 688 | 7/17/2022 |
| 1.0.2 | 647 | 7/15/2022 |
| 1.0.1 | 656 | 7/15/2022 |
| 1.0.0 | 707 | 7/8/2022 |
| 0.10.7 | 660 | 7/7/2022 |
| 0.10.2 | 689 | 7/2/2022 |
| 0.10.1 | 673 | 7/1/2022 |
| 0.10.0 | 673 | 7/1/2022 |
| 0.9.12 | 721 | 6/29/2022 |
| 0.9.11 | 712 | 6/21/2022 |
| 0.9.10 | 679 | 6/20/2022 |
| 0.9.9 | 661 | 6/11/2022 |
| 0.9.7 | 687 | 6/9/2022 |
| 0.9.6 | 642 | 6/5/2022 |
| 0.9.5 | 640 | 6/3/2022 |
| 0.9.3 | 627 | 6/3/2022 |
| 0.9.2 | 678 | 5/31/2022 |
| 0.9.1 | 651 | 5/31/2022 |
| 0.9.0 | 655 | 5/31/2022 |