Soenneker.Blazor.Consumers.Core 11.0.818

Prefix Reserved
dotnet add package Soenneker.Blazor.Consumers.Core --version 11.0.818
                    
NuGet\Install-Package Soenneker.Blazor.Consumers.Core -Version 11.0.818
                    
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="Soenneker.Blazor.Consumers.Core" Version="11.0.818" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Blazor.Consumers.Core" Version="11.0.818" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Blazor.Consumers.Core" />
                    
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 Soenneker.Blazor.Consumers.Core --version 11.0.818
                    
#r "nuget: Soenneker.Blazor.Consumers.Core, 11.0.818"
                    
#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 Soenneker.Blazor.Consumers.Core@11.0.818
                    
#: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=Soenneker.Blazor.Consumers.Core&version=11.0.818
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Consumers.Core&version=11.0.818
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Blazor.Consumers.Core

The minimal base class for building a custom Blazor API consumer around IApiClient, a logger, and a resource URI prefix.

This package does not provide CRUD methods or a DI registrar. Use Soenneker.Blazor.Consumers.Base for generic CRUD operations or Soenneker.Blazor.Consumer when one response type applies across a consumer.

Installation

dotnet add package Soenneker.Blazor.Consumers.Core

Define a low-level consumer

using Microsoft.Extensions.Logging;
using Soenneker.Blazor.ApiClient.Abstract;
using Soenneker.Blazor.Consumers.Core;

public sealed class HealthConsumer : CoreConsumer
{
    public HealthConsumer(
        IApiClient apiClient,
        ILogger<CoreConsumer> logger)
        : base(apiClient, logger, "health")
    {
    }

    public async ValueTask<bool> IsHealthy(
        CancellationToken cancellationToken = default)
    {
        using HttpResponseMessage response = await ApiClient.Get(
            PrefixUri,
            allowAnonymous: true,
            cancellationToken: cancellationToken);

        return response.IsSuccessStatusCode;
    }
}
using Soenneker.Blazor.ApiClient.Registrars;

builder.Services.AddApiClientAsScoped();
builder.Services.AddScoped<HealthConsumer>();

Initialize the scoped IApiClient with the application's API base address before sending a request. The core constructor rejects null dependencies and blank prefixes, and removes trailing / characters from the prefix. Derived consumers own the HttpResponseMessage values returned by ApiClient and must dispose them.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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 Soenneker.Blazor.Consumers.Core:

Package Downloads
Soenneker.Blazor.Consumers.Base

A wrapper around Soenneker.Blazor.ApiClient supporting auto (de)serialization for requests/responses/ProblemDetails.

Soenneker.Flywheel.Dashboard

A real-time Blazor dashboard for monitoring and managing Soenneker Flywheel.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.818 0 11/15/2026
11.0.817 0 11/15/2026
11.0.816 47 11/14/2026
11.0.815 258 11/12/2026
11.0.814 97 11/12/2026
11.0.813 68 11/12/2026
11.0.812 109 11/11/2026
11.0.811 77 11/11/2026
11.0.810 113 11/11/2026
11.0.809 112 11/11/2026
11.0.808 94 11/11/2026
11.0.807 58 11/11/2026
11.0.806 74 11/11/2026
11.0.805 131 11/10/2026
11.0.804 607 11/4/2026
11.0.803 120 11/3/2026
11.0.802 117 11/3/2026
11.0.801 133 11/3/2026
11.0.800 151 11/3/2026
11.0.799 148 11/3/2026
Loading failed

Update dependency Soenneker.Blazor.ApiClient to 11.0.3324 (#1385)