Rystem.RepositoryFramework.Api.Client
9.0.0-rc.1
See the version list below for details.
dotnet add package Rystem.RepositoryFramework.Api.Client --version 9.0.0-rc.1
NuGet\Install-Package Rystem.RepositoryFramework.Api.Client -Version 9.0.0-rc.1
<PackageReference Include="Rystem.RepositoryFramework.Api.Client" Version="9.0.0-rc.1" />
<PackageVersion Include="Rystem.RepositoryFramework.Api.Client" Version="9.0.0-rc.1" />
<PackageReference Include="Rystem.RepositoryFramework.Api.Client" />
paket add Rystem.RepositoryFramework.Api.Client --version 9.0.0-rc.1
#r "nuget: Rystem.RepositoryFramework.Api.Client, 9.0.0-rc.1"
#:package Rystem.RepositoryFramework.Api.Client@9.0.0-rc.1
#addin nuget:?package=Rystem.RepositoryFramework.Api.Client&version=9.0.0-rc.1&prerelease
#tool nuget:?package=Rystem.RepositoryFramework.Api.Client&version=9.0.0-rc.1&prerelease
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.0-rc.2.24473.5)
- Microsoft.Extensions.Http.Polly (>= 9.0.0-rc.2.24474.3)
- Polly (>= 8.4.2)
- Rystem.RepositoryFramework.Abstractions (>= 9.0.0-rc.1)
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 | 121 | 11/12/2025 |
| 9.1.3 | 317 | 9/2/2025 |
| 9.1.2 | 764,559 | 5/29/2025 |
| 9.1.1 | 97,841 | 5/2/2025 |
| 9.0.32 | 186,638 | 4/15/2025 |
| 9.0.31 | 5,862 | 4/2/2025 |
| 9.0.30 | 88,841 | 3/26/2025 |
| 9.0.29 | 9,050 | 3/18/2025 |
| 9.0.28 | 234 | 3/17/2025 |
| 9.0.27 | 224 | 3/16/2025 |
| 9.0.26 | 264 | 3/13/2025 |
| 9.0.25 | 52,125 | 3/9/2025 |
| 9.0.21 | 381 | 3/6/2025 |
| 9.0.20 | 19,605 | 3/6/2025 |
| 9.0.19 | 308 | 3/6/2025 |
| 9.0.18 | 328 | 3/4/2025 |
| 9.0.17 | 197 | 3/1/2025 |
| 9.0.16 | 208 | 3/1/2025 |
| 9.0.15 | 75,573 | 2/22/2025 |
| 9.0.14 | 22,588 | 2/18/2025 |
| 9.0.13 | 226 | 2/9/2025 |
| 9.0.12 | 217,697 | 1/13/2025 |
| 9.0.11 | 24,066 | 1/9/2025 |
| 9.0.10 | 193 | 1/9/2025 |
| 9.0.9 | 4,057 | 1/7/2025 |
| 9.0.8 | 12,561 | 1/6/2025 |
| 9.0.7 | 188 | 1/6/2025 |
| 9.0.4 | 92,348 | 12/23/2024 |
| 9.0.3 | 212 | 12/22/2024 |
| 9.0.2 | 10,735 | 12/21/2024 |
| 9.0.1 | 1,249 | 12/21/2024 |
| 9.0.0 | 173,103 | 11/16/2024 |
| 9.0.0-rc.1 | 131 | 10/18/2024 |
| 6.2.0 | 219,122 | 10/9/2024 |
| 6.1.1 | 240 | 10/9/2024 |
| 6.1.0 | 48,023 | 9/29/2024 |
| 6.0.24 | 251 | 9/11/2024 |
| 6.0.23 | 340,222 | 7/18/2024 |
| 6.0.21 | 254 | 6/18/2024 |
| 6.0.20 | 727,869 | 6/16/2024 |
| 6.0.19 | 30,511 | 6/14/2024 |
| 6.0.18 | 250 | 6/14/2024 |
| 6.0.17 | 229 | 6/14/2024 |
| 6.0.16 | 50,095 | 6/10/2024 |
| 6.0.15 | 225 | 6/9/2024 |
| 6.0.14 | 94,378 | 5/24/2024 |
| 6.0.13 | 240 | 5/23/2024 |
| 6.0.12 | 240 | 5/23/2024 |
| 6.0.11 | 260 | 5/20/2024 |
| 6.0.9 | 263 | 5/20/2024 |
| 6.0.7 | 251 | 5/18/2024 |
| 6.0.6 | 207 | 5/10/2024 |
| 6.0.5 | 230 | 5/10/2024 |
| 6.0.4 | 549,898 | 4/3/2024 |
| 6.0.3 | 285 | 3/25/2024 |
| 6.0.2 | 393,581 | 3/11/2024 |
| 6.0.0 | 1,170,149 | 11/21/2023 |
| 6.0.0-rc.6 | 184 | 10/25/2023 |
| 6.0.0-rc.5 | 119 | 10/25/2023 |
| 6.0.0-rc.4 | 133 | 10/23/2023 |
| 6.0.0-rc.3 | 139 | 10/19/2023 |
| 6.0.0-rc.2 | 118 | 10/18/2023 |
| 6.0.0-rc.1 | 112 | 10/16/2023 |
| 5.0.20 | 638,807 | 9/25/2023 |
| 5.0.19 | 437 | 9/10/2023 |
| 5.0.18 | 397 | 9/6/2023 |
| 5.0.17 | 369 | 9/6/2023 |
| 5.0.16 | 362 | 9/5/2023 |
| 5.0.15 | 362 | 9/5/2023 |
| 5.0.14 | 366 | 9/5/2023 |
| 5.0.13 | 376 | 9/1/2023 |
| 5.0.12 | 360 | 8/31/2023 |
| 5.0.11 | 337 | 8/30/2023 |
| 5.0.10 | 349 | 8/29/2023 |
| 5.0.9 | 400 | 8/24/2023 |
| 5.0.8 | 396 | 8/24/2023 |
| 5.0.7 | 449,839 | 8/23/2023 |
| 5.0.6 | 17,652 | 8/21/2023 |
| 5.0.5 | 4,443 | 8/21/2023 |
| 5.0.4 | 304 | 8/16/2023 |
| 5.0.3 | 212,596 | 8/2/2023 |
| 5.0.2 | 1,861 | 8/2/2023 |
| 5.0.1 | 11,669 | 8/1/2023 |
| 5.0.0 | 11,979 | 7/31/2023 |
| 4.1.26 | 140,808 | 7/20/2023 |
| 4.1.25 | 24,765 | 7/16/2023 |
| 4.1.24 | 397,966 | 6/13/2023 |
| 4.1.23 | 45,837 | 6/13/2023 |
| 4.1.22 | 129,241 | 5/30/2023 |
| 4.1.21 | 55,559 | 5/20/2023 |
| 4.1.20 | 404,711 | 4/19/2023 |
| 4.1.19 | 95,437 | 3/20/2023 |
| 4.1.18 | 421 | 3/20/2023 |
| 4.1.17 | 422 | 3/16/2023 |
| 4.1.16 | 382 | 3/16/2023 |
| 4.1.15 | 424 | 3/15/2023 |
| 4.1.14 | 1,006 | 3/9/2023 |
| 4.1.13 | 409 | 3/7/2023 |
| 4.1.12 | 547 | 2/10/2023 |
| 4.1.11 | 495 | 1/26/2023 |
| 4.1.10 | 527 | 1/22/2023 |
| 4.1.9 | 452 | 1/20/2023 |
| 4.1.8 | 489 | 1/18/2023 |
| 4.1.7 | 601 | 1/18/2023 |
| 4.1.6 | 471 | 1/17/2023 |
| 4.1.1 | 504 | 1/4/2023 |
| 4.1.0 | 483 | 1/1/2023 |
| 3.1.5 | 483 | 12/21/2022 |
| 3.1.3 | 539 | 12/12/2022 |
| 3.1.2 | 450 | 12/7/2022 |
| 3.1.1 | 467 | 12/7/2022 |
| 3.1.0 | 554 | 12/2/2022 |
| 3.0.29 | 511 | 12/1/2022 |
| 3.0.28 | 498 | 12/1/2022 |
| 3.0.27 | 695 | 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 | 562 | 11/13/2022 |
| 3.0.19 | 741 | 11/2/2022 |
| 3.0.18 | 562 | 11/2/2022 |
| 3.0.17 | 572 | 10/29/2022 |
| 3.0.16 | 581 | 10/29/2022 |
| 3.0.15 | 595 | 10/29/2022 |
| 3.0.14 | 617 | 10/24/2022 |
| 3.0.13 | 624 | 10/24/2022 |
| 3.0.12 | 678 | 10/17/2022 |
| 3.0.11 | 612 | 10/10/2022 |
| 3.0.10 | 644 | 10/6/2022 |
| 3.0.9 | 592 | 10/6/2022 |
| 3.0.8 | 577 | 10/6/2022 |
| 3.0.7 | 594 | 10/6/2022 |
| 3.0.6 | 601 | 10/5/2022 |
| 3.0.5 | 571 | 10/5/2022 |
| 3.0.4 | 596 | 10/5/2022 |
| 3.0.3 | 669 | 10/3/2022 |
| 3.0.2 | 616 | 9/30/2022 |
| 3.0.1 | 620 | 9/29/2022 |
| 2.0.17 | 645 | 9/29/2022 |
| 2.0.16 | 605 | 9/27/2022 |
| 2.0.15 | 675 | 9/27/2022 |
| 2.0.14 | 701 | 9/26/2022 |
| 2.0.13 | 671 | 9/26/2022 |
| 2.0.12 | 661 | 9/26/2022 |
| 2.0.11 | 631 | 9/25/2022 |
| 2.0.10 | 689 | 9/25/2022 |
| 2.0.9 | 672 | 9/22/2022 |
| 2.0.8 | 626 | 9/22/2022 |
| 2.0.6 | 652 | 9/20/2022 |
| 2.0.5 | 669 | 9/20/2022 |
| 2.0.4 | 627 | 9/20/2022 |
| 2.0.2 | 625 | 9/20/2022 |
| 2.0.1 | 661 | 9/13/2022 |
| 2.0.0 | 648 | 8/19/2022 |
| 1.1.24 | 685 | 7/30/2022 |
| 1.1.23 | 636 | 7/29/2022 |
| 1.1.22 | 660 | 7/29/2022 |
| 1.1.21 | 906 | 7/29/2022 |
| 1.1.20 | 684 | 7/29/2022 |
| 1.1.19 | 696 | 7/27/2022 |
| 1.1.17 | 667 | 7/27/2022 |
| 1.1.16 | 693 | 7/26/2022 |
| 1.1.15 | 657 | 7/25/2022 |
| 1.1.14 | 678 | 7/25/2022 |
| 1.1.13 | 692 | 7/22/2022 |
| 1.1.12 | 652 | 7/19/2022 |
| 1.1.11 | 659 | 7/19/2022 |
| 1.1.10 | 650 | 7/19/2022 |
| 1.1.9 | 677 | 7/19/2022 |
| 1.1.8 | 708 | 7/18/2022 |
| 1.1.7 | 708 | 7/18/2022 |
| 1.1.6 | 672 | 7/18/2022 |
| 1.1.5 | 636 | 7/17/2022 |
| 1.1.4 | 668 | 7/17/2022 |
| 1.1.3 | 704 | 7/17/2022 |
| 1.1.2 | 698 | 7/17/2022 |
| 1.1.0 | 687 | 7/17/2022 |
| 1.0.2 | 646 | 7/15/2022 |
| 1.0.1 | 654 | 7/15/2022 |
| 1.0.0 | 705 | 7/8/2022 |
| 0.10.7 | 659 | 7/7/2022 |
| 0.10.2 | 687 | 7/2/2022 |
| 0.10.1 | 670 | 7/1/2022 |
| 0.10.0 | 671 | 7/1/2022 |
| 0.9.12 | 719 | 6/29/2022 |
| 0.9.11 | 709 | 6/21/2022 |
| 0.9.10 | 677 | 6/20/2022 |
| 0.9.9 | 658 | 6/11/2022 |
| 0.9.7 | 685 | 6/9/2022 |
| 0.9.6 | 641 | 6/5/2022 |
| 0.9.5 | 637 | 6/3/2022 |
| 0.9.3 | 624 | 6/3/2022 |
| 0.9.2 | 677 | 5/31/2022 |
| 0.9.1 | 650 | 5/31/2022 |
| 0.9.0 | 653 | 5/31/2022 |