Table of Contents

Class GuardExtensions

Namespace
Executables.Guards
Assembly
executables.dll

Extension methods for composing guards.

public static class GuardExtensions
Inheritance
GuardExtensions
Inherited Members

Methods

Compose(Guard, Guard)

Composes two guards with logical AND semantics. Access is granted only if both guards grant access.

[Pure]
public static Guard Compose(this Guard first, Guard second)

Parameters

first Guard

First guard in composition chain.

second Guard

Second guard in composition chain.

Returns

Guard

A composite guard that combines both checks.

Exceptions

ArgumentNullException

second is null.