Class RegisteredReadModelTypes

Namespace
Cratis.Arc.Queries
Assembly
Cratis.Arc.Core.dll

Holds the set of read model types that were registered for command-scoped resolution, so consumers can tell a read model dependency apart from an unrelated one without re-resolving it.

public class RegisteredReadModelTypes
Inheritance
RegisteredReadModelTypes
Inherited Members
Extension Methods

Remarks

The set is additive across every provider that contributes a command-scoped resolver: a read model backed by Chronicle and one backed by another provider (for example Entity Framework Core) are both registered here, so the classification of a missing read model as invalid client input works uniformly regardless of where the read model is materialized.

Constructors

RegisteredReadModelTypes(IEnumerable<Type>)

Holds the set of read model types that were registered for command-scoped resolution, so consumers can tell a read model dependency apart from an unrelated one without re-resolving it.

public RegisteredReadModelTypes(IEnumerable<Type> types)

Parameters

types IEnumerable<Type>

The read model types registered for command-scoped resolution.

Remarks

The set is additive across every provider that contributes a command-scoped resolver: a read model backed by Chronicle and one backed by another provider (for example Entity Framework Core) are both registered here, so the classification of a missing read model as invalid client input works uniformly regardless of where the read model is materialized.

Properties

Types

Gets the read model types registered for command-scoped resolution.

public IEnumerable<Type> Types { get; }

Property Value

IEnumerable<Type>

Methods

Contains(Type)

Determines whether the given type is a registered read model.

public bool Contains(Type type)

Parameters

type Type

The type to check.

Returns

bool

True if the type is a registered read model; otherwise false.