MetalamaAPI documentationExtensions APIMetalama.​Extensions.​Architecture.​FabricsIVerifier<T>
Open sandboxFocus

IVerifier<T> Interface

Exposes, as extension methods, the fluent API for architecture validation from fabrics. When the scope represents a set of types, the ITypeSetVerifier<T> interface is used instead. This interface represents a set of declarations that can be validated.

Namespace: Metalama.Extensions.Architecture.Fabrics
Assembly: Metalama.Extensions.Architecture.dll
Syntax
[CompileTime]
[Obsolete("Use IAspectReceiver<T>.")]
public interface IVerifier<out T> where T : class, IDeclaration
Type Parameters
Name Description
T

Properties

Name Description
AssemblyName

Gets assembly name the project that instantiated the current IVerifier<T>.

Namespace

Gets the namespace from which the current IVerifier<T> was instantiated, i.e. the namespace of the NamespaceFabric or the TypeFabric. Returns null if the IVerifier<T> was instantiated from a ProjectFabric.

Receiver

Gets the underlying IAspectReceiver<TDeclaration>.

Extension Methods

VerifierExtensions.CannotBeUsedFrom(IVerifier<IDeclaration>, Func<ReferencePredicateBuilder, ReferencePredicate>, string?, ReferenceKinds)
VerifierExtensions.CanOnlyBeUsedFrom(IVerifier<IDeclaration>, Func<ReferencePredicateBuilder, ReferencePredicate>, string?, ReferenceKinds)
VerifierExtensions.Experimental(IVerifier<IDeclaration>)
VerifierExtensions.Select<T>(IVerifier<T>, Func<T, INamedType>)
VerifierExtensions.Select<TIn, TOut>(IVerifier<TIn>, Func<TIn, TOut>)
VerifierExtensions.SelectMany<T>(IVerifier<T>, Func<T, IEnumerable<INamedType>>)
VerifierExtensions.SelectMany<TIn, TOut>(IVerifier<TIn>, Func<TIn, IEnumerable<TOut>>)
VerifierExtensions.Where<T>(IVerifier<T>, Func<T, bool>)