Soenneker.Managers.Base 11.0.777

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

An abstract base class for managers that need Redis access, the current user context, and a shared logger.

Install

dotnet add package Soenneker.Managers.Base

What you get

  • BaseManager exposes RedisUtil, UserContext, Logger, and an IsAdmin shortcut to derived classes.
  • IBaseManager is an empty marker interface for identifying manager services.

Usage

public sealed class OrdersManager : BaseManager, IOrdersManager
{
    public OrdersManager(
        IRedisUtil redisUtil,
        ILogger<BaseManager> logger,
        IUserContext userContext)
        : base(redisUtil, logger, userContext)
    {
    }

    public bool CanManageOrders(string orderId)
    {
        Logger.LogInformation("Checking access to order {OrderId}", orderId);
        return IsAdmin;
    }
}

Register the concrete manager with the lifetime appropriate to its dependencies. In web applications that normally means scoped, because the user context is request-specific.

This package does not provide authorization by itself. IsAdmin only reflects IUserContext.IsAdmin(); enforce the application's authorization policy in the manager or at the request boundary.

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 (1)

Showing the top 1 NuGet packages that depend on Soenneker.Managers.Base:

Package Downloads
Soenneker.Managers.Entities

An abstract generic manager class provides CRUD operations for entities mapped to Cosmos DB documents

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.777 248 11/19/2026
11.0.776 100 11/19/2026
11.0.775 108 11/18/2026
11.0.774 103 11/18/2026
11.0.772 106 11/18/2026
11.0.771 109 11/18/2026
11.0.769 168 11/15/2026
11.0.768 112 11/15/2026
11.0.767 110 11/15/2026
11.0.766 125 11/15/2026
11.0.765 166 11/12/2026
11.0.763 201 11/11/2026
11.0.762 121 11/11/2026
11.0.761 113 11/11/2026
11.0.760 122 11/11/2026
11.0.759 111 11/11/2026
11.0.758 132 11/11/2026
11.0.757 115 11/11/2026
11.0.756 104 11/11/2026
11.0.755 401 11/3/2026
Loading failed

Update dependency Soenneker.Redis.Util to 11.0.5569 (#1320)