Class CallbackThreadAttribute
- Namespace
- Jitter2
- Assembly
- Jitter2.dll
Indicates the thread context in which a callback or event is expected to be invoked. Documents the calling convention; it does not enforce thread safety.
[AttributeUsage(AttributeTargets.Method|AttributeTargets.Event)]
public sealed class CallbackThreadAttribute : Attribute
- Inheritance
-
CallbackThreadAttribute
- Inherited Members
Constructors
CallbackThreadAttribute(ThreadContext)
Indicates the thread context in which a callback or event is expected to be invoked. Documents the calling convention; it does not enforce thread safety.
public CallbackThreadAttribute(ThreadContext context)
Parameters
contextThreadContext
Properties
Context
Gets the thread context in which the attributed member is expected to be invoked.
public ThreadContext Context { get; }