IAspectRepositoryService Interface
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 (in PostSharp.dll) Version: 4.3.31.0 (4.3.31.0)
Syntax
C#
public interface IAspectRepositoryService : IService

The IAspectRepositoryService type exposes the following members.

Methods
  NameDescription
Public methodGetAspectInstances
Gets the list of aspect instances on a given declaration.
Public methodHasAspect
Determines whether an aspect of a given type has been applied to a given declaration.
Top
Events
  NameDescription
Public eventAspectDiscoveryCompleted
Event invoked after all the aspects in the current project have been discovered and initialized.
Top
Remarks

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

See Also