Open sandboxFocus

Interface IAspectRepositoryService

Service that allows to determine which aspects have been applied to a given declaration, whether declaratively through custom attributes or MulticastAttribute, or programmatically using IAspectProvider.

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

To get an instance of this service, use the GetService<T>(bool) method from PostSharpEnvironment.CurrentProject.GetService.

Methods

Name Description
GetAspectInstances(object)

Gets the list of aspect instances on a given declaration.

HasAspect(object, Type)

Determines whether an aspect of a given type has been applied to a given declaration.

Events

Name Description
AspectDiscoveryCompleted

Event invoked after all the aspects in the current project have been discovered and initialized.