Harden by Harry McIntyre

<PackageReference Include="Harden" Version="1.2.5" />

 Harden 1.2.5

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).

<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
  <metadata>
    <id>Harden</id>
    <version>1.2.5</version>
    <title>Harden</title>
    <authors>Harry McIntyre</authors>
    <owners>Harry McIntyre</owners>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <description>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).</description>
    <copyright>MIT Licence</copyright>
    <dependencies>
      <dependency id="Castle.Core" version="2.5.2" />
    </dependencies>
  </metadata>
</package>