Defines the standard roles.
Namespace: PostSharp.Aspects.Dependencies
Assembly: PostSharp.dll
Syntax
public static class StandardRolesRemarks
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) in one of these roles.
If this list is not sufficient, we at PostSharp encourage you to
contact us to define a new role string. In any case, if you define a new role string, we recommend that you
define it clearly so that users of your aspect can express dependencies with their own aspects
or with third-party aspects.
Fields
| Name | Description |
|---|---|
| Caching | Caching. |
| DataBinding | Data binding (for example, the implementation of INotifyPropertyChanged). |
| EventBroker | Event broker. This is a system role that |
| ExceptionHandling | Exception handling. |
| PerformanceInstrumentation | Performance instrumentation (for example, performance counters). |
| Persistence | Object persistence (for example, an object-relational mapper). |
| Security | Security enforcement (typically authorization). |
| Threading | Threading (locking). |
| Tracing | Tracing and logging. |
| TransactionHandling | Transaction handling. |
| Validation | The validation of a field, property, or parameter value. |