Table of Contents

Class PolicyResultExtensions

Namespace
Motiv
Assembly
Motiv.dll

Extension methods for PolicyResultBase<TMetadata>.

public static class PolicyResultExtensions
Inheritance
PolicyResultExtensions
Inherited Members

Methods

OrElseTogether<TMetadata>(IEnumerable<PolicyResultBase<TMetadata>>)

Combines a collection of policy results using the conditional OR operator (i.e. ||).

public static PolicyResultBase<TMetadata> OrElseTogether<TMetadata>(this IEnumerable<PolicyResultBase<TMetadata>> policyResult)

Parameters

policyResult IEnumerable<PolicyResultBase<TMetadata>>

The policy results to apply the OR operator to.

Returns

PolicyResultBase<TMetadata>

A single policy result that is the conditional OR of all the input propositions.

Type Parameters

TMetadata

The type of the metadata.