PostSharp.ILAPI ReferencePost­Sharp.​AspectsIAspect­Repository­Service
Open sandboxFocus

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.dll
Syntax
public interface IAspectRepositoryService : IService

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.