Rystem.RepositoryFramework.Api.Client 9.0.28

There is a newer version of this package available.
See the version list below for details.
dotnet add package Rystem.RepositoryFramework.Api.Client --version 9.0.28
                    
NuGet\Install-Package Rystem.RepositoryFramework.Api.Client -Version 9.0.28
                    
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.0.28" />
                    
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.0.28" />
                    
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.0.28
                    
#r "nuget: Rystem.RepositoryFramework.Api.Client, 9.0.28"
                    
#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.
#addin nuget:?package=Rystem.RepositoryFramework.Api.Client&version=9.0.28
                    
Install as a Cake Addin
#tool nuget:?package=Rystem.RepositoryFramework.Api.Client&version=9.0.28
                    
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.2 130,570 5/29/2025
9.1.1 97,744 5/2/2025
9.0.32 186,573 4/15/2025
9.0.31 5,774 4/2/2025
9.0.30 88,772 3/26/2025
9.0.29 8,948 3/18/2025
9.0.28 166 3/17/2025
9.0.27 164 3/16/2025
9.0.26 181 3/13/2025
9.0.25 52,052 3/9/2025
9.0.21 285 3/6/2025
9.0.20 19,529 3/6/2025
9.0.19 239 3/6/2025
9.0.18 240 3/4/2025
9.0.17 126 3/1/2025
9.0.16 122 3/1/2025
9.0.15 75,471 2/22/2025
9.0.14 22,520 2/18/2025
9.0.13 139 2/9/2025
9.0.12 217,604 1/13/2025
9.0.11 23,988 1/9/2025
9.0.10 112 1/9/2025
9.0.9 3,990 1/7/2025
9.0.8 12,484 1/6/2025
9.0.7 123 1/6/2025
9.0.4 92,291 12/23/2024
9.0.3 132 12/22/2024
9.0.2 10,674 12/21/2024
9.0.1 1,174 12/21/2024
9.0.0 173,042 11/16/2024
9.0.0-rc.1 103 10/18/2024
6.2.0 219,040 10/9/2024
6.1.1 158 10/9/2024
6.1.0 47,948 9/29/2024
6.0.24 188 9/11/2024
6.0.23 340,156 7/18/2024
6.0.21 177 6/18/2024
6.0.20 727,786 6/16/2024
6.0.19 30,417 6/14/2024
6.0.18 176 6/14/2024
6.0.17 162 6/14/2024
6.0.16 50,003 6/10/2024
6.0.15 162 6/9/2024
6.0.14 94,295 5/24/2024
6.0.13 174 5/23/2024
6.0.12 156 5/23/2024
6.0.11 184 5/20/2024
6.0.9 204 5/20/2024
6.0.7 170 5/18/2024
6.0.6 145 5/10/2024
6.0.5 149 5/10/2024
6.0.4 549,807 4/3/2024
6.0.3 199 3/25/2024
6.0.2 393,485 3/11/2024
6.0.0 1,170,091 11/21/2023
6.0.0-rc.6 140 10/25/2023
6.0.0-rc.5 102 10/25/2023
6.0.0-rc.4 90 10/23/2023
6.0.0-rc.3 95 10/19/2023
6.0.0-rc.2 99 10/18/2023
6.0.0-rc.1 92 10/16/2023
5.0.20 638,730 9/25/2023
5.0.19 366 9/10/2023
5.0.18 321 9/6/2023
5.0.17 278 9/6/2023
5.0.16 287 9/5/2023
5.0.15 267 9/5/2023
5.0.14 304 9/5/2023
5.0.13 289 9/1/2023
5.0.12 285 8/31/2023
5.0.11 248 8/30/2023
5.0.10 276 8/29/2023
5.0.9 312 8/24/2023
5.0.8 302 8/24/2023
5.0.7 449,756 8/23/2023
5.0.6 17,598 8/21/2023
5.0.5 4,388 8/21/2023
5.0.4 227 8/16/2023
5.0.3 212,522 8/2/2023
5.0.2 1,808 8/2/2023
5.0.1 11,616 8/1/2023
5.0.0 11,898 7/31/2023
4.1.26 140,733 7/20/2023
4.1.25 24,695 7/16/2023
4.1.24 397,888 6/13/2023
4.1.23 45,759 6/13/2023
4.1.22 129,144 5/30/2023
4.1.21 55,494 5/20/2023
4.1.20 404,630 4/19/2023
4.1.19 95,345 3/20/2023
4.1.18 335 3/20/2023
4.1.17 331 3/16/2023
4.1.16 319 3/16/2023
4.1.15 338 3/15/2023
4.1.14 915 3/9/2023
4.1.13 344 3/7/2023
4.1.12 438 2/10/2023
4.1.11 402 1/26/2023
4.1.10 419 1/22/2023
4.1.9 385 1/20/2023
4.1.8 424 1/18/2023
4.1.7 532 1/18/2023
4.1.6 386 1/17/2023
4.1.1 423 1/4/2023
4.1.0 393 1/1/2023
3.1.5 391 12/21/2022
3.1.3 443 12/12/2022
3.1.2 380 12/7/2022
3.1.1 399 12/7/2022
3.1.0 460 12/2/2022
3.0.29 434 12/1/2022
3.0.28 432 12/1/2022
3.0.27 621 11/23/2022
3.0.25 427 11/23/2022
3.0.24 488 11/18/2022
3.0.23 442 11/18/2022
3.0.22 468 11/15/2022
3.0.21 458 11/14/2022
3.0.20 473 11/13/2022
3.0.19 640 11/2/2022
3.0.18 493 11/2/2022
3.0.17 487 10/29/2022
3.0.16 512 10/29/2022
3.0.15 493 10/29/2022
3.0.14 532 10/24/2022
3.0.13 535 10/24/2022
3.0.12 587 10/17/2022
3.0.11 540 10/10/2022
3.0.10 549 10/6/2022
3.0.9 520 10/6/2022
3.0.8 488 10/6/2022
3.0.7 520 10/6/2022
3.0.6 516 10/5/2022
3.0.5 502 10/5/2022
3.0.4 526 10/5/2022
3.0.3 570 10/3/2022
3.0.2 530 9/30/2022
3.0.1 522 9/29/2022
2.0.17 547 9/29/2022
2.0.16 532 9/27/2022
2.0.15 602 9/27/2022
2.0.14 614 9/26/2022
2.0.13 601 9/26/2022
2.0.12 564 9/26/2022
2.0.11 560 9/25/2022
2.0.10 580 9/25/2022
2.0.9 577 9/22/2022
2.0.8 544 9/22/2022
2.0.6 562 9/20/2022
2.0.5 597 9/20/2022
2.0.4 556 9/20/2022
2.0.2 528 9/20/2022
2.0.1 588 9/13/2022
2.0.0 547 8/19/2022
1.1.24 589 7/30/2022
1.1.23 567 7/29/2022
1.1.22 572 7/29/2022
1.1.21 838 7/29/2022
1.1.20 592 7/29/2022
1.1.19 615 7/27/2022
1.1.17 583 7/27/2022
1.1.16 603 7/26/2022
1.1.15 582 7/25/2022
1.1.14 608 7/25/2022
1.1.13 590 7/22/2022
1.1.12 581 7/19/2022
1.1.11 568 7/19/2022
1.1.10 578 7/19/2022
1.1.9 605 7/19/2022
1.1.8 614 7/18/2022
1.1.7 616 7/18/2022
1.1.6 580 7/18/2022
1.1.5 557 7/17/2022
1.1.4 592 7/17/2022
1.1.3 610 7/17/2022
1.1.2 616 7/17/2022
1.1.0 591 7/17/2022
1.0.2 573 7/15/2022
1.0.1 580 7/15/2022
1.0.0 599 7/8/2022
0.10.7 583 7/7/2022
0.10.2 614 7/2/2022
0.10.1 579 7/1/2022
0.10.0 598 7/1/2022
0.9.12 621 6/29/2022
0.9.11 636 6/21/2022
0.9.10 581 6/20/2022
0.9.9 557 6/11/2022
0.9.7 571 6/9/2022
0.9.6 563 6/5/2022
0.9.5 541 6/3/2022
0.9.3 533 6/3/2022
0.9.2 577 5/31/2022
0.9.1 587 5/31/2022
0.9.0 556 5/31/2022