Open sandboxFocus

Class InboundReferenceValidator

A reference validator that validates outbound references. Its ValidateReferences(ReferenceValidationContext) method will be called for all declarations that are referencing the declaration to which this validator is added.

Namespace: Metalama.Framework.Validation
Assembly: Metalama.Framework.dll
Syntax
public abstract class InboundReferenceValidator : BaseReferenceValidator, ICompileTimeSerializable

Constructors

Name Description
InboundReferenceValidator()

Properties

Name Description
ValidatedEndRole

Gets the direction (Destination or Origin) of to the validated reference ends. If the ValidatedEndRole is set to Origin, the validator must be added to the destination (i.e. referenced) declaration, and the ValidateReferences(ReferenceValidationContext) method will be called with references on the origin (referencing) ends.

Extension Methods