Soenneker.Blazor.Consumers.Core 11.0.833

Prefix Reserved
dotnet add package Soenneker.Blazor.Consumers.Core --version 11.0.833
                    
NuGet\Install-Package Soenneker.Blazor.Consumers.Core -Version 11.0.833
                    
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.833" />
                    
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.833" />
                    
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.833
                    
#r "nuget: Soenneker.Blazor.Consumers.Core, 11.0.833"
                    
#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.833
                    
#: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.833
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.Consumers.Core&version=11.0.833
                    
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.833 694 11/19/2026
11.0.832 182 11/19/2026
11.0.831 123 11/19/2026
11.0.830 139 11/19/2026
11.0.829 102 11/18/2026
11.0.828 123 11/18/2026
11.0.827 99 11/18/2026
11.0.825 194 11/18/2026
11.0.824 298 11/17/2026
11.0.823 127 11/16/2026
11.0.822 173 11/16/2026
11.0.821 126 11/15/2026
11.0.820 150 11/15/2026
11.0.819 179 11/15/2026
11.0.818 132 11/15/2026
11.0.817 197 11/15/2026
11.0.816 186 11/14/2026
11.0.815 407 11/12/2026
11.0.814 175 11/12/2026
11.0.813 126 11/12/2026
Loading failed

Update dependency Soenneker.Blazor.ApiClient to 11.0.3344 (#1395)