Harden
Wraps your classes with a proxy which automatically carries out permission checks when you call methods. e.g. If you have a method 'public virtual void SendEmail()' , you can create a method 'public virtual bool' AllowSendEmail() { ... } When SendEmail is called, AllowSendEmail is called first. If this returns false, a HardenException is thrown. To harden an object, call Hardener.Harden(someObject).
Install
dotnet add package Harden --version 1.2.9
Install-Package Harden -Version 1.2.9
<PackageReference Include="Harden" Version="1.2.9" />
Frameworks
No framework metadata available.
Dependencies
Adoption guide
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.
No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.
How to read this guidance
Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.
Useful next steps
Move from package metadata to a concrete selection or review workflow.