WinterRose.ForgeGuard
25.4.0
dotnet add package WinterRose.ForgeGuard --version 25.4.0
NuGet\Install-Package WinterRose.ForgeGuard -Version 25.4.0
<PackageReference Include="WinterRose.ForgeGuard" Version="25.4.0" />
<PackageVersion Include="WinterRose.ForgeGuard" Version="25.4.0" />
<PackageReference Include="WinterRose.ForgeGuard" />
paket add WinterRose.ForgeGuard --version 25.4.0
#r "nuget: WinterRose.ForgeGuard, 25.4.0"
#:package WinterRose.ForgeGuard@25.4.0
#addin nuget:?package=WinterRose.ForgeGuard&version=25.4.0
#tool nuget:?package=WinterRose.ForgeGuard&version=25.4.0
A unit-test-like system thats designed for production runtime application healthchecks. but can also be used for developers to unit test their app
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Features
ForgeGuard Core Class
Automatically discovers and executes guard tests defined across loaded assemblies.
Attribute-Driven Guard System
[GuardClass] to mark types containing guards
[Guard] for test-like methods. with an optional constructor overload to define severity. defaults to Catastrophic
[GuardSetup] / [GuardTeardown] for per-class setup and teardown
[GlobalSetup] / [GlobalTeardown] for once-per-run hooks
[Fatal] to mark guards that should abort the app on failure
Severity-Aware Execution
Guard methods can be tagged with severity levels to reflect the criticality of a failure.
ForgeGuard.RunGuards(Stream)
Execute all guard classes and emit structured diagnostic output to a stream.
Production-Safe Checks
Ideal for runtime verification of invariants, environment sanity, or post-start health validation.
ANSI Color Formatting
Toggle ForgeGuard.IncludeColorInMessageFormat for easy-to-read terminal output.
Added XML documentation to all methods (i think)
added a way to tag guard classes, and to only run guards tagged with a specified tag.
ForgeGuard now throws exceptions when no guards are found in the loaded assemblies, or when no guard with one of the specified tags was found