Soenneker.Managers.Base 11.0.767

Prefix Reserved
dotnet add package Soenneker.Managers.Base --version 11.0.767
                    
NuGet\Install-Package Soenneker.Managers.Base -Version 11.0.767
                    
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.767" />
                    
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.767" />
                    
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.767
                    
#r "nuget: Soenneker.Managers.Base, 11.0.767"
                    
#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.767
                    
#: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.767
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Managers.Base&version=11.0.767
                    
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.767 0 11/15/2026
11.0.766 0 11/15/2026
11.0.765 73 11/12/2026
11.0.763 153 11/11/2026
11.0.762 86 11/11/2026
11.0.761 85 11/11/2026
11.0.760 101 11/11/2026
11.0.759 89 11/11/2026
11.0.758 102 11/11/2026
11.0.757 95 11/11/2026
11.0.756 85 11/11/2026
11.0.755 396 11/3/2026
11.0.754 103 11/3/2026
11.0.753 101 11/3/2026
11.0.752 102 11/3/2026
11.0.751 101 11/3/2026
11.0.749 105 11/3/2026
11.0.747 98 11/3/2026
11.0.746 121 11/3/2026
11.0.745 129 11/2/2026
Loading failed

Update dependency Soenneker.Redis.Util to 11.0.5559 (#1315)