PostSharpAPI ReferencePost­Sharp.​Patterns.​ThreadingDispatched­Attribute.​Dispatched­Method­Aspect
Open sandboxFocus

DispatchedAttribute.DispatchedMethodAspect Class

Inheritance
DispatchedAttribute.DispatchedMethodAspect
Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading.dll
Syntax
[ProvideAspectRole("Threading")]
[AspectTypeDependency]
[AspectRoleDependency]
[AspectRoleDependency]
[AspectRoleDependency]
[AspectRoleDependency]
[LinesOfCodeAvoided(1)]
[AspectDescription("Executes the method in the object thread")]
[Internal(AttributeId = -9126100459348525005L)]
[HasConstraint]
[Serializer]
public sealed class DispatchedMethodAspect : MethodInterceptionAspect, IMethodLevelAspectBuildSemantics, IAspectBuildSemantics, IValidableAnnotation, IAsyncMethodInterceptionAspect, IMethodInterceptionAspect, IMethodLevelAspect, IAspect

Constructors

Name Description
DispatchedMethodAspect(PortableFormatterConstructorContext)

Methods

Name Description
CompileTimeValidate(MethodBase)

Method invoked at build time to ensure that the aspect has been applied to the right target.

OnInvoke(MethodInterceptionArgs)

Method invoked instead of the method to which the aspect has been applied.

OnInvokeAsync(MethodInterceptionArgs)

Method invoked instead of the method to which the aspect has been applied.