PostSharp6.2/API Reference/Post­Sharp.​Aspects.​Dependencies Namespace/Standard­Roles Class

StandardRoles Class

List of standard roles.
Inheritance Hierarchy
System.Object
  PostSharp.Aspects.Dependencies.StandardRoles

Namespace:  PostSharp.Aspects.Dependencies
Assembly:  PostSharp (in PostSharp.dll) Version: 6.2.11.0 (6.2.11.0)
Syntax
C#
public static class StandardRoles

The StandardRoles type exposes the following members.

Fields
  NameDescription
Public fieldStatic memberCaching
Caching.
Public fieldStatic memberDataBinding
Data binding (for instance implementation of INotifyPropertyChanged).
Public fieldStatic memberEventBroker
Event broker (a system role used internally by PostSharp to realize the OnInvokeHandler(EventInterceptionArgs) handler).
Public fieldStatic memberExceptionHandling
Exception handling.
Public fieldStatic memberPerformanceInstrumentation
Performance instrumentation (for instance performance counters).
Public fieldStatic memberPersistence
Object persistence (for instance Object-Relational Mapper).
Public fieldStatic memberSecurity
Security enforcing (typically authorization).
Public fieldStatic memberThreading
Threading (locking).
Public fieldStatic memberTracing
Tracing and logging.
Public fieldStatic memberTransactionHandling
Transaction handling.
Public fieldStatic memberValidation
Validation of field, property, or parameter value.
Remarks

See AspectRoleDependencyAttribute for a discussion of aspect roles.

Roles are used to categorize aspects according to their function. This class defines standard names for the most commonly used aspect roles. If you are an aspect vendor, you are encouraged to enroll your aspects (using ProvideAspectRoleAttribute) into one of these roles.

If this list is not sufficient, we at PostSharp encourage you contact us to define a new role string. In any case, if you define a new role string, we recommend you clearly define it so that users of your aspect can express dependencies with their own aspects, or third-party aspects.

See Also