23 packages tagged with “Guards”
This Guards project is a light-weight toolbox which helps you to protect your public interfaces against invalid parameters being passed over.
C# DDD Domain Layer
A flexible, simple, and powerful way to validate and guard your data. It provides a variety of user-defined validators that allow you to use LINQ to validate your data, in addition to hundreds of built-in validators. And it allows you to write your own custom validators and use them in your project without modifying this library.
Helper functions to aid in argument validation for C# functions. Example Usage: Throw.IfNull(argument, nameof(argument)); Throw.IfNullOrEmpty(argument, nameof(argument));
This library provides guard clauses that could be used to guard against not expected values. It provides conditions for objects, strings, numerics, datatime and enumerables. It is possible to configure which exception should be thrown.
A small library containing parameter validation helpers.
Tolitech.Results.Guards is a utility library that provides fluent and expressive guard clauses for result-oriented programming.
This Guard utility makes it easy to validate arguments of public methods for null values or specific conditions. It is one of the fundamentals in C# programming as enforced by static code analysis (CA1062).
A pattern guard-like library for .NET.
Provides various .NET classes to help with development of all types of applications.
A collection of core classes, services, interfaces, and other software development concepts that are used throughout The Omen Den's applications
A package that contains functionality that we believe is commonly used across all types of different projects, and probably should've been included in the standard library.
a simple tool to have a strong guard clause within your Web or WebApi application with custom exception throw
Library of guard clauses with a wide range of validations available. Supports custom messages and exceptions in addition to standard defaults.
Core primitives for Clean Architecture: Results, guards, pipeline behaviors, logging abstractions, domain events, and clocks.
A package that provides guard methods used for throwing exceptions if the required conditions are not met.
The package contains general classes, helpers and interfaces.
Has(text), Coalesce(a,b,c), list.Where(FilledIn) to replace garbage like !Equals(x, default(T?)) && !Equals(x, default(T)) and string.IsNullOrWhiteSpace(text). Fallbacks, emptiness checks coded like you mean it.
Guard patterns and result extensions for validation, conflict, not-found, and unauthorized scenarios.
Code analyzers and fixers to ensure Design-by-Contract based on naming conventions
Fluent API for code contract validation supporting multiple data types (int, long, double, decimal, float, string, object). Provides chainable guards with readable syntax for enforcing preconditions and business rules with clear error messages.
A simple .NET library for easily writing tests for guard clauses.
State machine pattern for TurboMediator - entity lifecycle management with guards, transitions and mediator integration