Miner.System Assembly > Miner.Threading Namespace : ThreadStorage<T> Class |
'Declaration Public Class ThreadStorage(Of T) Inherits System.MarshalByRefObject
'Usage Dim instance As ThreadStorage(Of T)
public class ThreadStorage<T> : System.MarshalByRefObject
This is similar to Thread Local Storage (TLS) or the CallContext with the added benefit of being type-safe and also supports on-demand creation (optionally, when creating the ThreadStorage with the CreatorCallback delegate).
Additionally, deriving classes can enforce call-semantics - for example, the STAThreadStorage is useful for enforcing that the calling thread is an STA thread to prevent unwanted marshaling.
System.Object
System.MarshalByRefObject
Miner.Threading.ThreadStorage<T>
Miner.Threading.STAThreadStorage<T>
Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)
Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.