PostSharp / / API Reference / Post­Sharp.​Patterns.​Threading / Thread­Aware­Attribute

Class ThreadAwareAttribute

Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading.dll
Syntax
[ProvideAspectRole("ThreadingModel")]
[ProvideAspectRole("Threading")]
[AspectRoleDependency]
[AspectRoleDependency]
[AspectRoleDependency]
[AspectRoleDependency]
[AspectRoleDependency]
[MulticastAttributeUsage]
[IntroduceInterface]
[IntroduceInterface]
[HasConstraint]
[Serializer]
public abstract class ThreadAwareAttribute : AggregatableClientAttribute, ITypeLevelAspect, ITypeLevelAspectBuildSemantics, IAspectBuildSemantics, IValidableAnnotation, ICloneAwareAspect, IInstanceScopedAspect, IAspectProvider, IService, IAdviceProvider, IAspect, IThreadAware, IQueryInterface

Constructors

Name Description
ThreadAwareAttribute(PortableFormatterConstructorContext)

Fields

Name Description
__GetThreadAwareImplMethod
__GetThreadAwareImplMethodBase
BaseFinalizeMethod
BaseQueryInterface
OnParentChangedMethod
OnSerializingBaseMethod
QueryInterfaceMethod
UseParentConcurrencyControllerMethod

Properties

Name Description
RuntimeVerificationEnabled

Methods

Name Description
__GetThreadAwareImpl()
Advise(Object)
CompileTimeValidate(Type)
Finalize()
IsEligibleChild(Object, ChildInfo)
OnAdviseChildFailed(Object)
OnAsyncMethodEntry(DeclarationIdentifier, out FlowBehavior, out ConcurrentAccessAwaiter, out Int32)
OnAsyncMethodException(ref ConcurrentAccessToken)
OnAsyncMethodResume(ref FlowBehavior, ref ConcurrentAccessAwaiter, ref Int32, ref ConcurrentAccessToken)
OnAsyncMethodSuccess(ref ConcurrentAccessToken)
OnAsyncMethodYield(ref ConcurrentAccessToken, ref Int32)
OnFieldGet<T>(ILocationBinding<T>, Object, out T)
OnFieldSet<T>(ILocationBinding<T>, Object, T)
OnInstanceConstructed()
OnMethodEntry(DeclarationIdentifier, out ConcurrentAccessToken)
OnMethodException(ref ConcurrentAccessToken)
OnMethodResume(ref ConcurrentAccessToken)
OnMethodSuccess(ref ConcurrentAccessToken)
OnParentChanged()
OnSerializing(StreamingContext)
OnSynchronizedEventAdd(EventInterceptionArgs)
OnSynchronizedEventRemove(EventInterceptionArgs)
OnYieldEventInvoke(EventInterceptionArgs)
ProvideAdvices(Object)
QueryInterface(Type)
QueryInterface<T>()
RuntimeInitialize(Type)
RuntimeInitializeInstance()

Explicit Interface Implementations

Name Description
IThreadAware.ConcurrencyController
IThreadAware.OnParentControllerChanged(IConcurrencyController)