Table of Contents

Class Policy<TModel>

Namespace
Motiv
Assembly
Motiv.dll

Represents a "policy" whereby an arbitrary rule causes a single metadata instance to be returned for either the true and false condition. The metadata is a string.

public class Policy<TModel> : Policy<TModel, string>

Type Parameters

TModel

The model type that will be evaluated

Inheritance
SpecBase<TModel>
SpecBase<TModel, string>
Policy<TModel, string>
Policy<TModel>
Inherited Members
Extension Methods

Constructors

Policy(PolicyBase<TModel, string>)

public Policy(PolicyBase<TModel, string> spec)

Parameters

spec PolicyBase<TModel, string>

Policy(Func<PolicyBase<TModel, string>>)

public Policy(Func<PolicyBase<TModel, string>> specFactory)

Parameters

specFactory Func<PolicyBase<TModel, string>>