JJConsulting.Infinity.Client 1.4.17

There is a newer version of this package available.
See the version list below for details.
dotnet add package JJConsulting.Infinity.Client --version 1.4.17
                    
NuGet\Install-Package JJConsulting.Infinity.Client -Version 1.4.17
                    
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="JJConsulting.Infinity.Client" Version="1.4.17" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JJConsulting.Infinity.Client" Version="1.4.17" />
                    
Directory.Packages.props
<PackageReference Include="JJConsulting.Infinity.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 JJConsulting.Infinity.Client --version 1.4.17
                    
#r "nuget: JJConsulting.Infinity.Client, 1.4.17"
                    
#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 JJConsulting.Infinity.Client@1.4.17
                    
#: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=JJConsulting.Infinity.Client&version=1.4.17
                    
Install as a Cake Addin
#tool nuget:?package=JJConsulting.Infinity.Client&version=1.4.17
                    
Install as a Cake Tool

JJConsulting.Infinity.Client

Client library for interacting with the JJInfinity API, providing typed access to its endpoints and integration support for .NET applications.

Installation

Install via NuGet Package Manager:

dotnet add package JJConsulting.Infinity.Client

Or via the NuGet Package Manager UI in Visual Studio or Rider.

For Serilog ASP.NET Core integration, also install:

dotnet add package Serilog.AspNetCore

Usage

1. Register the client in your Program.cs:

using JJConsulting.Infinity.Client.Configuration;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddInfinityClient(options =>
{
    options.BaseAddress = builder.Configuration["Infinity:BaseAddress"]!;
    options.Token = builder.Configuration["Infinity:Token"]!;
});

// OR, if you need SignIn authentication:
builder.Services.AddInfinityClient(options =>
{
    options.BaseAddress = builder.Configuration["Infinity:BaseAddress"]!;
    options.Username = builder.Configuration["Infinity:Username"]!;
    options.Password = builder.Configuration["Infinity:Password"]!;
});

var app = builder.Build();

Using sign authentication relies on your username and password. If the password is ever changed, this client will fail until updated. For a more stable setup, prefer token authentication.

You can generate a token selecting a user at /Admin/Users and generating a token at "Tokens".

2. Inject and use services in your application:

using JJConsulting.Infinity.Domain.Contracts;
using JJConsulting.Infinity.Domain.Identity.Users;

public class MyService(IUserService userService)
{
    public async Task<UserDetails> GetUserAsync(Guid userId)
    {
        var user = await userService.GetUserAsync(userId);
        // Handle the user
    }
}

Serilog Integration (ASP.NET Core)

Send structured logs from Serilog directly to the JJInfinity API using Serilog.AspNetCore.

1. Configure Serilog in Program.cs using builder.Host.UseSerilog:

using JJConsulting.Infinity.Client.Configuration;
using Serilog;
using Serilog.Formatting.Compact;

var builder = WebApplication.CreateBuilder(args);

builder.Host.UseSerilog((context, services, loggerConfig) =>
{
    loggerConfig
        .WriteTo.Console()
        .WriteTo.InfinityHttp(options =>
        {
            options.BaseAddress = context.Configuration["Infinity:BaseAddress"]!;
            options.Token = context.Configuration["Infinity:Token"]!;
        });
});

builder.Services.AddInfinityClient(options =>
{
    options.BaseAddress = builder.Configuration["Infinity:BaseAddress"]!;
    options.Token = builder.Configuration["Infinity:Token"]!;
});

var app = builder.Build();

2. Use Serilog normally in your application using ILogger:

public class OrderController(ILogger<OrderController> logger) : ControllerBase
{
    [HttpGet("{id}")]
    public IActionResult GetOrder(int id)
    {
        logger.LogInformation("Fetching order with ID {OrderId}", id);
        return Ok();
    }

Features

  • Typed access to JJInfinity API endpoints
  • Integration with Microsoft.Extensions.DependencyInjection
  • Supports .NET Standard 2.0 and above

Public API

The public API is available here.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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 is compatible.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on JJConsulting.Infinity.Client:

Package Downloads
JJConsulting.Infinity.Client.Webhooks

Client library for handling JJInfinity Webhooks in ASP.NET Core applications, providing typed access to audit log events with signature validation and a pluggable processing model.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.4.25 98 2/9/2026
1.4.24 94 2/9/2026
1.4.23 105 2/2/2026
1.4.22 99 1/30/2026
1.4.20 102 1/29/2026
1.4.19 101 1/28/2026
1.4.18 93 1/28/2026
1.4.17 89 1/28/2026
1.4.15 421 11/18/2025
1.4.13 220 11/5/2025
1.4.12 203 11/4/2025
1.4.11 202 10/27/2025
1.4.10 146 10/24/2025
1.4.9 188 10/23/2025
1.4.8 197 10/13/2025
1.4.7 189 10/8/2025
1.4.6 184 10/8/2025
1.4.5 191 10/8/2025
1.4.4 182 10/8/2025
1.4.3 182 10/8/2025
Loading failed