MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​AspectsIAspect­Repository­Service
Open sandboxFocus

IAspectRepositoryService Interface

In Metalama, use extension methods of the code model.

Namespace: PostSharp.Aspects
Assembly: Metalama.Migration.dll
Syntax
public interface IAspectRepositoryService : IService

Methods

Name Description
GetAspectInstances(Object)

Use IDeclaration.Enhancements<T>(T).

HasAspect(Object, Type)

Use IDeclaration.Enhancements<T>(T).Any().

Events

Name Description
AspectDiscoveryCompleted

This event is not exposed, but when you register validators, they get executed after all aspects have been applied.