Rystem.RepositoryFramework.Api.Client 9.1.3

dotnet add package Rystem.RepositoryFramework.Api.Client --version 9.1.3
                    
NuGet\Install-Package Rystem.RepositoryFramework.Api.Client -Version 9.1.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Rystem.RepositoryFramework.Api.Client" Version="9.1.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rystem.RepositoryFramework.Api.Client" Version="9.1.3" />
                    
Directory.Packages.props
<PackageReference Include="Rystem.RepositoryFramework.Api.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Rystem.RepositoryFramework.Api.Client --version 9.1.3
                    
#r "nuget: Rystem.RepositoryFramework.Api.Client, 9.1.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Rystem.RepositoryFramework.Api.Client@9.1.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Rystem.RepositoryFramework.Api.Client&version=9.1.3
                    
Install as a Cake Addin
#tool nuget:?package=Rystem.RepositoryFramework.Api.Client&version=9.1.3
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.1.3 166 9/2/2025
9.1.2 532,442 5/29/2025
9.1.1 97,786 5/2/2025
9.0.32 186,597 4/15/2025
9.0.31 5,809 4/2/2025
9.0.30 88,798 3/26/2025
9.0.29 8,989 3/18/2025
9.0.28 192 3/17/2025
9.0.27 187 3/16/2025
9.0.26 209 3/13/2025
9.0.25 52,078 3/9/2025
9.0.21 317 3/6/2025
9.0.20 19,553 3/6/2025
9.0.19 263 3/6/2025
9.0.18 274 3/4/2025
9.0.17 150 3/1/2025
9.0.16 156 3/1/2025
9.0.15 75,509 2/22/2025
9.0.14 22,544 2/18/2025
9.0.13 173 2/9/2025
9.0.12 217,634 1/13/2025
9.0.11 24,014 1/9/2025
9.0.10 142 1/9/2025
9.0.9 4,013 1/7/2025
9.0.8 12,512 1/6/2025
9.0.7 146 1/6/2025
9.0.4 92,314 12/23/2024
9.0.3 165 12/22/2024
9.0.2 10,697 12/21/2024
9.0.1 1,198 12/21/2024
9.0.0 173,065 11/16/2024
9.0.0-rc.1 122 10/18/2024
6.2.0 219,067 10/9/2024
6.1.1 186 10/9/2024
6.1.0 47,975 9/29/2024
6.0.24 210 9/11/2024
6.0.23 340,177 7/18/2024
6.0.21 206 6/18/2024
6.0.20 727,815 6/16/2024
6.0.19 30,446 6/14/2024
6.0.18 196 6/14/2024
6.0.17 183 6/14/2024
6.0.16 50,032 6/10/2024
6.0.15 185 6/9/2024
6.0.14 94,321 5/24/2024
6.0.13 196 5/23/2024
6.0.12 184 5/23/2024
6.0.11 212 5/20/2024
6.0.9 225 5/20/2024
6.0.7 200 5/18/2024
6.0.6 165 5/10/2024
6.0.5 178 5/10/2024
6.0.4 549,833 4/3/2024
6.0.3 227 3/25/2024
6.0.2 393,519 3/11/2024
6.0.0 1,170,102 11/21/2023
6.0.0-rc.6 159 10/25/2023
6.0.0-rc.5 114 10/25/2023
6.0.0-rc.4 112 10/23/2023
6.0.0-rc.3 117 10/19/2023
6.0.0-rc.2 112 10/18/2023
6.0.0-rc.1 107 10/16/2023
5.0.20 638,752 9/25/2023
5.0.19 388 9/10/2023
5.0.18 344 9/6/2023
5.0.17 309 9/6/2023
5.0.16 312 9/5/2023
5.0.15 302 9/5/2023
5.0.14 326 9/5/2023
5.0.13 317 9/1/2023
5.0.12 316 8/31/2023
5.0.11 277 8/30/2023
5.0.10 299 8/29/2023
5.0.9 343 8/24/2023
5.0.8 341 8/24/2023
5.0.7 449,787 8/23/2023
5.0.6 17,626 8/21/2023
5.0.5 4,413 8/21/2023
5.0.4 264 8/16/2023
5.0.3 212,554 8/2/2023
5.0.2 1,835 8/2/2023
5.0.1 11,642 8/1/2023
5.0.0 11,937 7/31/2023
4.1.26 140,764 7/20/2023
4.1.25 24,726 7/16/2023
4.1.24 397,922 6/13/2023
4.1.23 45,797 6/13/2023
4.1.22 129,187 5/30/2023
4.1.21 55,522 5/20/2023
4.1.20 404,665 4/19/2023
4.1.19 95,386 3/20/2023
4.1.18 371 3/20/2023
4.1.17 371 3/16/2023
4.1.16 348 3/16/2023
4.1.15 371 3/15/2023
4.1.14 953 3/9/2023
4.1.13 374 3/7/2023
4.1.12 483 2/10/2023
4.1.11 441 1/26/2023
4.1.10 461 1/22/2023
4.1.9 418 1/20/2023
4.1.8 454 1/18/2023
4.1.7 564 1/18/2023
4.1.6 425 1/17/2023
4.1.1 455 1/4/2023
4.1.0 431 1/1/2023
3.1.5 434 12/21/2022
3.1.3 481 12/12/2022
3.1.2 414 12/7/2022
3.1.1 430 12/7/2022
3.1.0 507 12/2/2022
3.0.29 469 12/1/2022
3.0.28 464 12/1/2022
3.0.27 656 11/23/2022
3.0.25 457 11/23/2022
3.0.24 519 11/18/2022
3.0.23 482 11/18/2022
3.0.22 498 11/15/2022
3.0.21 501 11/14/2022
3.0.20 512 11/13/2022
3.0.19 685 11/2/2022
3.0.18 527 11/2/2022
3.0.17 529 10/29/2022
3.0.16 546 10/29/2022
3.0.15 534 10/29/2022
3.0.14 565 10/24/2022
3.0.13 576 10/24/2022
3.0.12 630 10/17/2022
3.0.11 576 10/10/2022
3.0.10 590 10/6/2022
3.0.9 555 10/6/2022
3.0.8 528 10/6/2022
3.0.7 554 10/6/2022
3.0.6 554 10/5/2022
3.0.5 535 10/5/2022
3.0.4 558 10/5/2022
3.0.3 610 10/3/2022
3.0.2 565 9/30/2022
3.0.1 563 9/29/2022
2.0.17 589 9/29/2022
2.0.16 566 9/27/2022
2.0.15 637 9/27/2022
2.0.14 656 9/26/2022
2.0.13 634 9/26/2022
2.0.12 608 9/26/2022
2.0.11 594 9/25/2022
2.0.10 623 9/25/2022
2.0.9 618 9/22/2022
2.0.8 584 9/22/2022
2.0.6 601 9/20/2022
2.0.5 630 9/20/2022
2.0.4 588 9/20/2022
2.0.2 569 9/20/2022
2.0.1 622 9/13/2022
2.0.0 591 8/19/2022
1.1.24 631 7/30/2022
1.1.23 599 7/29/2022
1.1.22 611 7/29/2022
1.1.21 870 7/29/2022
1.1.20 631 7/29/2022
1.1.19 651 7/27/2022
1.1.17 619 7/27/2022
1.1.16 647 7/26/2022
1.1.15 619 7/25/2022
1.1.14 641 7/25/2022
1.1.13 630 7/22/2022
1.1.12 615 7/19/2022
1.1.11 609 7/19/2022
1.1.10 612 7/19/2022
1.1.9 640 7/19/2022
1.1.8 654 7/18/2022
1.1.7 655 7/18/2022
1.1.6 618 7/18/2022
1.1.5 593 7/17/2022
1.1.4 629 7/17/2022
1.1.3 653 7/17/2022
1.1.2 661 7/17/2022
1.1.0 632 7/17/2022
1.0.2 608 7/15/2022
1.0.1 616 7/15/2022
1.0.0 639 7/8/2022
0.10.7 617 7/7/2022
0.10.2 649 7/2/2022
0.10.1 615 7/1/2022
0.10.0 632 7/1/2022
0.9.12 663 6/29/2022
0.9.11 669 6/21/2022
0.9.10 630 6/20/2022
0.9.9 602 6/11/2022
0.9.7 615 6/9/2022
0.9.6 599 6/5/2022
0.9.5 585 6/3/2022
0.9.3 576 6/3/2022
0.9.2 620 5/31/2022
0.9.1 622 5/31/2022
0.9.0 595 5/31/2022