Rystem.RepositoryFramework.Api.Client
9.0.19
See the version list below for details.
dotnet add package Rystem.RepositoryFramework.Api.Client --version 9.0.19
NuGet\Install-Package Rystem.RepositoryFramework.Api.Client -Version 9.0.19
<PackageReference Include="Rystem.RepositoryFramework.Api.Client" Version="9.0.19" />
paket add Rystem.RepositoryFramework.Api.Client --version 9.0.19
#r "nuget: Rystem.RepositoryFramework.Api.Client, 9.0.19"
// Install Rystem.RepositoryFramework.Api.Client as a Cake Addin #addin nuget:?package=Rystem.RepositoryFramework.Api.Client&version=9.0.19 // Install Rystem.RepositoryFramework.Api.Client as a Cake Tool #tool nuget:?package=Rystem.RepositoryFramework.Api.Client&version=9.0.19
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. |
-
net9.0
- Microsoft.Extensions.Http (>= 9.0.2)
- Microsoft.Extensions.Http.Polly (>= 9.0.2)
- Polly (>= 8.5.2)
- Rystem.RepositoryFramework.Abstractions (>= 9.0.19)
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 |
---|---|---|
9.0.29 | 8,905 | 3/18/2025 |
9.0.28 | 141 | 3/17/2025 |
9.0.27 | 139 | 3/16/2025 |
9.0.26 | 155 | 3/13/2025 |
9.0.25 | 52,027 | 3/9/2025 |
9.0.21 | 255 | 3/6/2025 |
9.0.20 | 19,504 | 3/6/2025 |
9.0.19 | 215 | 3/6/2025 |
9.0.18 | 214 | 3/4/2025 |
9.0.17 | 101 | 3/1/2025 |
9.0.16 | 97 | 3/1/2025 |
9.0.15 | 75,447 | 2/22/2025 |
9.0.14 | 22,498 | 2/18/2025 |
9.0.13 | 117 | 2/9/2025 |
9.0.12 | 217,583 | 1/13/2025 |
9.0.11 | 23,961 | 1/9/2025 |
9.0.10 | 90 | 1/9/2025 |
9.0.9 | 3,968 | 1/7/2025 |
9.0.8 | 12,461 | 1/6/2025 |
9.0.7 | 99 | 1/6/2025 |
9.0.4 | 92,267 | 12/23/2024 |
9.0.3 | 109 | 12/22/2024 |
9.0.2 | 10,651 | 12/21/2024 |
9.0.1 | 1,151 | 12/21/2024 |
9.0.0 | 173,021 | 11/16/2024 |
9.0.0-rc.1 | 90 | 10/18/2024 |
6.2.0 | 219,017 | 10/9/2024 |
6.1.1 | 135 | 10/9/2024 |
6.1.0 | 47,926 | 9/29/2024 |
6.0.24 | 168 | 9/11/2024 |
6.0.23 | 340,130 | 7/18/2024 |
6.0.21 | 156 | 6/18/2024 |
6.0.20 | 727,763 | 6/16/2024 |
6.0.19 | 30,397 | 6/14/2024 |
6.0.18 | 157 | 6/14/2024 |
6.0.17 | 144 | 6/14/2024 |
6.0.16 | 49,983 | 6/10/2024 |
6.0.15 | 144 | 6/9/2024 |
6.0.14 | 94,276 | 5/24/2024 |
6.0.13 | 155 | 5/23/2024 |
6.0.12 | 131 | 5/23/2024 |
6.0.11 | 164 | 5/20/2024 |
6.0.9 | 186 | 5/20/2024 |
6.0.7 | 148 | 5/18/2024 |
6.0.6 | 124 | 5/10/2024 |
6.0.5 | 130 | 5/10/2024 |
6.0.4 | 549,787 | 4/3/2024 |
6.0.3 | 176 | 3/25/2024 |
6.0.2 | 393,459 | 3/11/2024 |
6.0.0 | 1,170,083 | 11/21/2023 |
6.0.0-rc.6 | 127 | 10/25/2023 |
6.0.0-rc.5 | 95 | 10/25/2023 |
6.0.0-rc.4 | 80 | 10/23/2023 |
6.0.0-rc.3 | 83 | 10/19/2023 |
6.0.0-rc.2 | 90 | 10/18/2023 |
6.0.0-rc.1 | 85 | 10/16/2023 |
5.0.20 | 638,709 | 9/25/2023 |
5.0.19 | 353 | 9/10/2023 |
5.0.18 | 307 | 9/6/2023 |
5.0.17 | 266 | 9/6/2023 |
5.0.16 | 275 | 9/5/2023 |
5.0.15 | 256 | 9/5/2023 |
5.0.14 | 275 | 9/5/2023 |
5.0.13 | 274 | 9/1/2023 |
5.0.12 | 255 | 8/31/2023 |
5.0.11 | 236 | 8/30/2023 |
5.0.10 | 264 | 8/29/2023 |
5.0.9 | 297 | 8/24/2023 |
5.0.8 | 290 | 8/24/2023 |
5.0.7 | 449,744 | 8/23/2023 |
5.0.6 | 17,586 | 8/21/2023 |
5.0.5 | 4,376 | 8/21/2023 |
5.0.4 | 210 | 8/16/2023 |
5.0.3 | 212,506 | 8/2/2023 |
5.0.2 | 1,794 | 8/2/2023 |
5.0.1 | 11,596 | 8/1/2023 |
5.0.0 | 11,880 | 7/31/2023 |
4.1.26 | 140,715 | 7/20/2023 |
4.1.25 | 24,680 | 7/16/2023 |
4.1.24 | 397,868 | 6/13/2023 |
4.1.23 | 45,735 | 6/13/2023 |
4.1.22 | 129,120 | 5/30/2023 |
4.1.21 | 55,476 | 5/20/2023 |
4.1.20 | 404,612 | 4/19/2023 |
4.1.19 | 95,328 | 3/20/2023 |
4.1.18 | 317 | 3/20/2023 |
4.1.17 | 315 | 3/16/2023 |
4.1.16 | 301 | 3/16/2023 |
4.1.15 | 309 | 3/15/2023 |
4.1.14 | 887 | 3/9/2023 |
4.1.13 | 325 | 3/7/2023 |
4.1.12 | 403 | 2/10/2023 |
4.1.11 | 379 | 1/26/2023 |
4.1.10 | 399 | 1/22/2023 |
4.1.9 | 365 | 1/20/2023 |
4.1.8 | 403 | 1/18/2023 |
4.1.7 | 514 | 1/18/2023 |
4.1.6 | 368 | 1/17/2023 |
4.1.1 | 399 | 1/4/2023 |
4.1.0 | 375 | 1/1/2023 |
3.1.5 | 374 | 12/21/2022 |
3.1.3 | 423 | 12/12/2022 |
3.1.2 | 363 | 12/7/2022 |
3.1.1 | 382 | 12/7/2022 |
3.1.0 | 436 | 12/2/2022 |
3.0.29 | 415 | 12/1/2022 |
3.0.28 | 412 | 12/1/2022 |
3.0.27 | 604 | 11/23/2022 |
3.0.25 | 409 | 11/23/2022 |
3.0.24 | 469 | 11/18/2022 |
3.0.23 | 421 | 11/18/2022 |
3.0.22 | 450 | 11/15/2022 |
3.0.21 | 439 | 11/14/2022 |
3.0.20 | 456 | 11/13/2022 |
3.0.19 | 623 | 11/2/2022 |
3.0.18 | 475 | 11/2/2022 |
3.0.17 | 469 | 10/29/2022 |
3.0.16 | 494 | 10/29/2022 |
3.0.15 | 475 | 10/29/2022 |
3.0.14 | 511 | 10/24/2022 |
3.0.13 | 498 | 10/24/2022 |
3.0.12 | 565 | 10/17/2022 |
3.0.11 | 521 | 10/10/2022 |
3.0.10 | 530 | 10/6/2022 |
3.0.9 | 488 | 10/6/2022 |
3.0.8 | 468 | 10/6/2022 |
3.0.7 | 501 | 10/6/2022 |
3.0.6 | 494 | 10/5/2022 |
3.0.5 | 483 | 10/5/2022 |
3.0.4 | 505 | 10/5/2022 |
3.0.3 | 549 | 10/3/2022 |
3.0.2 | 511 | 9/30/2022 |
3.0.1 | 502 | 9/29/2022 |
2.0.17 | 527 | 9/29/2022 |
2.0.16 | 513 | 9/27/2022 |
2.0.15 | 582 | 9/27/2022 |
2.0.14 | 592 | 9/26/2022 |
2.0.13 | 582 | 9/26/2022 |
2.0.12 | 539 | 9/26/2022 |
2.0.11 | 541 | 9/25/2022 |
2.0.10 | 560 | 9/25/2022 |
2.0.9 | 557 | 9/22/2022 |
2.0.8 | 524 | 9/22/2022 |
2.0.6 | 543 | 9/20/2022 |
2.0.5 | 578 | 9/20/2022 |
2.0.4 | 535 | 9/20/2022 |
2.0.2 | 509 | 9/20/2022 |
2.0.1 | 568 | 9/13/2022 |
2.0.0 | 527 | 8/19/2022 |
1.1.24 | 554 | 7/30/2022 |
1.1.23 | 543 | 7/29/2022 |
1.1.22 | 549 | 7/29/2022 |
1.1.21 | 814 | 7/29/2022 |
1.1.20 | 564 | 7/29/2022 |
1.1.19 | 588 | 7/27/2022 |
1.1.17 | 554 | 7/27/2022 |
1.1.16 | 577 | 7/26/2022 |
1.1.15 | 558 | 7/25/2022 |
1.1.14 | 586 | 7/25/2022 |
1.1.13 | 563 | 7/22/2022 |
1.1.12 | 558 | 7/19/2022 |
1.1.11 | 538 | 7/19/2022 |
1.1.10 | 556 | 7/19/2022 |
1.1.9 | 583 | 7/19/2022 |
1.1.8 | 591 | 7/18/2022 |
1.1.7 | 592 | 7/18/2022 |
1.1.6 | 551 | 7/18/2022 |
1.1.5 | 534 | 7/17/2022 |
1.1.4 | 570 | 7/17/2022 |
1.1.3 | 578 | 7/17/2022 |
1.1.2 | 576 | 7/17/2022 |
1.1.0 | 561 | 7/17/2022 |
1.0.2 | 550 | 7/15/2022 |
1.0.1 | 557 | 7/15/2022 |
1.0.0 | 575 | 7/8/2022 |
0.10.7 | 560 | 7/7/2022 |
0.10.2 | 592 | 7/2/2022 |
0.10.1 | 557 | 7/1/2022 |
0.10.0 | 576 | 7/1/2022 |
0.9.12 | 595 | 6/29/2022 |
0.9.11 | 612 | 6/21/2022 |
0.9.10 | 555 | 6/20/2022 |
0.9.9 | 532 | 6/11/2022 |
0.9.7 | 545 | 6/9/2022 |
0.9.6 | 540 | 6/5/2022 |
0.9.5 | 517 | 6/3/2022 |
0.9.3 | 507 | 6/3/2022 |
0.9.2 | 548 | 5/31/2022 |
0.9.1 | 561 | 5/31/2022 |
0.9.0 | 532 | 5/31/2022 |