Rystem.RepositoryFramework.Api.Client
9.0.16
See the version list below for details.
dotnet add package Rystem.RepositoryFramework.Api.Client --version 9.0.16
NuGet\Install-Package Rystem.RepositoryFramework.Api.Client -Version 9.0.16
<PackageReference Include="Rystem.RepositoryFramework.Api.Client" Version="9.0.16" />
<PackageVersion Include="Rystem.RepositoryFramework.Api.Client" Version="9.0.16" />
<PackageReference Include="Rystem.RepositoryFramework.Api.Client" />
paket add Rystem.RepositoryFramework.Api.Client --version 9.0.16
#r "nuget: Rystem.RepositoryFramework.Api.Client, 9.0.16"
#:package Rystem.RepositoryFramework.Api.Client@9.0.16
#addin nuget:?package=Rystem.RepositoryFramework.Api.Client&version=9.0.16
#tool nuget:?package=Rystem.RepositoryFramework.Api.Client&version=9.0.16
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 | net9.0 is compatible. 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. |
-
net9.0
- Microsoft.Extensions.Http (>= 9.0.2)
- Microsoft.Extensions.Http.Polly (>= 9.0.2)
- Polly (>= 8.5.2)
- Rystem.RepositoryFramework.Abstractions (>= 9.0.16)
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 | 333 | 11/12/2025 |
| 9.1.3 | 330 | 9/2/2025 |
| 9.1.2 | 764,574 | 5/29/2025 |
| 9.1.1 | 97,853 | 5/2/2025 |
| 9.0.32 | 186,652 | 4/15/2025 |
| 9.0.31 | 5,876 | 4/2/2025 |
| 9.0.30 | 88,853 | 3/26/2025 |
| 9.0.29 | 9,062 | 3/18/2025 |
| 9.0.28 | 247 | 3/17/2025 |
| 9.0.27 | 239 | 3/16/2025 |
| 9.0.26 | 278 | 3/13/2025 |
| 9.0.25 | 52,138 | 3/9/2025 |
| 9.0.21 | 393 | 3/6/2025 |
| 9.0.20 | 19,620 | 3/6/2025 |
| 9.0.19 | 321 | 3/6/2025 |
| 9.0.18 | 339 | 3/4/2025 |
| 9.0.17 | 217 | 3/1/2025 |
| 9.0.16 | 222 | 3/1/2025 |
| 9.0.15 | 75,588 | 2/22/2025 |
| 9.0.14 | 22,599 | 2/18/2025 |
| 9.0.13 | 239 | 2/9/2025 |
| 9.0.12 | 217,711 | 1/13/2025 |
| 9.0.11 | 24,082 | 1/9/2025 |
| 9.0.10 | 209 | 1/9/2025 |
| 9.0.9 | 4,067 | 1/7/2025 |
| 9.0.8 | 12,573 | 1/6/2025 |
| 9.0.7 | 200 | 1/6/2025 |
| 9.0.4 | 92,361 | 12/23/2024 |
| 9.0.3 | 226 | 12/22/2024 |
| 9.0.2 | 10,745 | 12/21/2024 |
| 9.0.1 | 1,260 | 12/21/2024 |
| 9.0.0 | 173,114 | 11/16/2024 |
| 9.0.0-rc.1 | 138 | 10/18/2024 |
| 6.2.0 | 219,136 | 10/9/2024 |
| 6.1.1 | 254 | 10/9/2024 |
| 6.1.0 | 48,036 | 9/29/2024 |
| 6.0.24 | 266 | 9/11/2024 |
| 6.0.23 | 340,231 | 7/18/2024 |
| 6.0.21 | 267 | 6/18/2024 |
| 6.0.20 | 727,879 | 6/16/2024 |
| 6.0.19 | 30,523 | 6/14/2024 |
| 6.0.18 | 266 | 6/14/2024 |
| 6.0.17 | 239 | 6/14/2024 |
| 6.0.16 | 50,108 | 6/10/2024 |
| 6.0.15 | 245 | 6/9/2024 |
| 6.0.14 | 94,388 | 5/24/2024 |
| 6.0.13 | 253 | 5/23/2024 |
| 6.0.12 | 252 | 5/23/2024 |
| 6.0.11 | 274 | 5/20/2024 |
| 6.0.9 | 275 | 5/20/2024 |
| 6.0.7 | 263 | 5/18/2024 |
| 6.0.6 | 217 | 5/10/2024 |
| 6.0.5 | 244 | 5/10/2024 |
| 6.0.4 | 549,911 | 4/3/2024 |
| 6.0.3 | 299 | 3/25/2024 |
| 6.0.2 | 393,592 | 3/11/2024 |
| 6.0.0 | 1,170,155 | 11/21/2023 |
| 6.0.0-rc.6 | 187 | 10/25/2023 |
| 6.0.0-rc.5 | 122 | 10/25/2023 |
| 6.0.0-rc.4 | 135 | 10/23/2023 |
| 6.0.0-rc.3 | 143 | 10/19/2023 |
| 6.0.0-rc.2 | 121 | 10/18/2023 |
| 6.0.0-rc.1 | 115 | 10/16/2023 |
| 5.0.20 | 638,815 | 9/25/2023 |
| 5.0.19 | 440 | 9/10/2023 |
| 5.0.18 | 411 | 9/6/2023 |
| 5.0.17 | 371 | 9/6/2023 |
| 5.0.16 | 365 | 9/5/2023 |
| 5.0.15 | 370 | 9/5/2023 |
| 5.0.14 | 372 | 9/5/2023 |
| 5.0.13 | 385 | 9/1/2023 |
| 5.0.12 | 363 | 8/31/2023 |
| 5.0.11 | 341 | 8/30/2023 |
| 5.0.10 | 353 | 8/29/2023 |
| 5.0.9 | 405 | 8/24/2023 |
| 5.0.8 | 401 | 8/24/2023 |
| 5.0.7 | 449,849 | 8/23/2023 |
| 5.0.6 | 17,655 | 8/21/2023 |
| 5.0.5 | 4,446 | 8/21/2023 |
| 5.0.4 | 310 | 8/16/2023 |
| 5.0.3 | 212,600 | 8/2/2023 |
| 5.0.2 | 1,865 | 8/2/2023 |
| 5.0.1 | 11,673 | 8/1/2023 |
| 5.0.0 | 11,983 | 7/31/2023 |
| 4.1.26 | 140,814 | 7/20/2023 |
| 4.1.25 | 24,769 | 7/16/2023 |
| 4.1.24 | 397,974 | 6/13/2023 |
| 4.1.23 | 45,846 | 6/13/2023 |
| 4.1.22 | 129,251 | 5/30/2023 |
| 4.1.21 | 55,568 | 5/20/2023 |
| 4.1.20 | 404,719 | 4/19/2023 |
| 4.1.19 | 95,445 | 3/20/2023 |
| 4.1.18 | 436 | 3/20/2023 |
| 4.1.17 | 428 | 3/16/2023 |
| 4.1.16 | 391 | 3/16/2023 |
| 4.1.15 | 434 | 3/15/2023 |
| 4.1.14 | 1,013 | 3/9/2023 |
| 4.1.13 | 417 | 3/7/2023 |
| 4.1.12 | 553 | 2/10/2023 |
| 4.1.11 | 506 | 1/26/2023 |
| 4.1.10 | 544 | 1/22/2023 |
| 4.1.9 | 459 | 1/20/2023 |
| 4.1.8 | 496 | 1/18/2023 |
| 4.1.7 | 609 | 1/18/2023 |
| 4.1.6 | 479 | 1/17/2023 |
| 4.1.1 | 512 | 1/4/2023 |
| 4.1.0 | 490 | 1/1/2023 |
| 3.1.5 | 494 | 12/21/2022 |
| 3.1.3 | 547 | 12/12/2022 |
| 3.1.2 | 460 | 12/7/2022 |
| 3.1.1 | 475 | 12/7/2022 |
| 3.1.0 | 563 | 12/2/2022 |
| 3.0.29 | 520 | 12/1/2022 |
| 3.0.28 | 509 | 12/1/2022 |
| 3.0.27 | 702 | 11/23/2022 |
| 3.0.25 | 497 | 11/23/2022 |
| 3.0.24 | 565 | 11/18/2022 |
| 3.0.23 | 538 | 11/18/2022 |
| 3.0.22 | 538 | 11/15/2022 |
| 3.0.21 | 556 | 11/14/2022 |
| 3.0.20 | 570 | 11/13/2022 |
| 3.0.19 | 750 | 11/2/2022 |
| 3.0.18 | 569 | 11/2/2022 |
| 3.0.17 | 584 | 10/29/2022 |
| 3.0.16 | 588 | 10/29/2022 |
| 3.0.15 | 604 | 10/29/2022 |
| 3.0.14 | 637 | 10/24/2022 |
| 3.0.13 | 635 | 10/24/2022 |
| 3.0.12 | 692 | 10/17/2022 |
| 3.0.11 | 620 | 10/10/2022 |
| 3.0.10 | 660 | 10/6/2022 |
| 3.0.9 | 600 | 10/6/2022 |
| 3.0.8 | 588 | 10/6/2022 |
| 3.0.7 | 614 | 10/6/2022 |
| 3.0.6 | 611 | 10/5/2022 |
| 3.0.5 | 578 | 10/5/2022 |
| 3.0.4 | 605 | 10/5/2022 |
| 3.0.3 | 680 | 10/3/2022 |
| 3.0.2 | 628 | 9/30/2022 |
| 3.0.1 | 627 | 9/29/2022 |
| 2.0.17 | 653 | 9/29/2022 |
| 2.0.16 | 614 | 9/27/2022 |
| 2.0.15 | 682 | 9/27/2022 |
| 2.0.14 | 715 | 9/26/2022 |
| 2.0.13 | 681 | 9/26/2022 |
| 2.0.12 | 677 | 9/26/2022 |
| 2.0.11 | 639 | 9/25/2022 |
| 2.0.10 | 700 | 9/25/2022 |
| 2.0.9 | 681 | 9/22/2022 |
| 2.0.8 | 638 | 9/22/2022 |
| 2.0.6 | 664 | 9/20/2022 |
| 2.0.5 | 683 | 9/20/2022 |
| 2.0.4 | 638 | 9/20/2022 |
| 2.0.2 | 638 | 9/20/2022 |
| 2.0.1 | 670 | 9/13/2022 |
| 2.0.0 | 656 | 8/19/2022 |
| 1.1.24 | 698 | 7/30/2022 |
| 1.1.23 | 652 | 7/29/2022 |
| 1.1.22 | 673 | 7/29/2022 |
| 1.1.21 | 917 | 7/29/2022 |
| 1.1.20 | 697 | 7/29/2022 |
| 1.1.19 | 714 | 7/27/2022 |
| 1.1.17 | 680 | 7/27/2022 |
| 1.1.16 | 705 | 7/26/2022 |
| 1.1.15 | 671 | 7/25/2022 |
| 1.1.14 | 689 | 7/25/2022 |
| 1.1.13 | 703 | 7/22/2022 |
| 1.1.12 | 665 | 7/19/2022 |
| 1.1.11 | 673 | 7/19/2022 |
| 1.1.10 | 665 | 7/19/2022 |
| 1.1.9 | 688 | 7/19/2022 |
| 1.1.8 | 719 | 7/18/2022 |
| 1.1.7 | 736 | 7/18/2022 |
| 1.1.6 | 684 | 7/18/2022 |
| 1.1.5 | 649 | 7/17/2022 |
| 1.1.4 | 681 | 7/17/2022 |
| 1.1.3 | 718 | 7/17/2022 |
| 1.1.2 | 708 | 7/17/2022 |
| 1.1.0 | 700 | 7/17/2022 |
| 1.0.2 | 657 | 7/15/2022 |
| 1.0.1 | 665 | 7/15/2022 |
| 1.0.0 | 717 | 7/8/2022 |
| 0.10.7 | 668 | 7/7/2022 |
| 0.10.2 | 698 | 7/2/2022 |
| 0.10.1 | 687 | 7/1/2022 |
| 0.10.0 | 684 | 7/1/2022 |
| 0.9.12 | 730 | 6/29/2022 |
| 0.9.11 | 721 | 6/21/2022 |
| 0.9.10 | 687 | 6/20/2022 |
| 0.9.9 | 670 | 6/11/2022 |
| 0.9.7 | 697 | 6/9/2022 |
| 0.9.6 | 651 | 6/5/2022 |
| 0.9.5 | 651 | 6/3/2022 |
| 0.9.3 | 636 | 6/3/2022 |
| 0.9.2 | 687 | 5/31/2022 |
| 0.9.1 | 661 | 5/31/2022 |
| 0.9.0 | 665 | 5/31/2022 |