Metalama 1.0 / / Metalama Documentation / Extensions API / Metalama.​Extensions.​Architecture.​Fabrics / Architecture­Verifier­Extensions / Can­Only­Be­Used­From

Method CanOnlyBeUsedFrom

CanOnlyBeUsedFrom(ArchitectureVerifier, Func<ReferencePredicateBuilder, ReferencePredicate>, String)

Reports a warning when any type in the current scope is used from a different context than the ones matching the specified predicate.

Declaration
public static void CanOnlyBeUsedFrom(this ArchitectureVerifier verifier, Func<ReferencePredicateBuilder, ReferencePredicate> predicate, string description = null)
Parameters
Type Name Description
ArchitectureVerifier verifier
Func<ReferencePredicateBuilder, ReferencePredicate> predicate
String description