Open sandboxFocus

Interface IAspectRepositoryService

In Metalama, use extension methods of the code model.

Namespace: PostSharp.Aspects
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("In Metalama, use extension methods of the code model.", false)]
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.

Extension Methods