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: 2023.0.3.0 (2023.0.3.0)
C#
public interface IAspectRepositoryService : IService
The IAspectRepositoryService type exposes the following members.
Name | Description | |
---|---|---|
GetAspectInstances |
Gets the list of aspect instances on a given declaration.
| |
HasAspect |
Determines whether an aspect of a given type has been applied to a given declaration.
|
Name | Description | |
---|---|---|
AspectDiscoveryCompleted |
Event invoked after all the aspects in the current project have been discovered and initialized.
|
To get an instance of this service, use the GetService<T>(Boolean) method from PostSharpEnvironment.CurrentProject.GetService.