ThreadStatic T  ClassDelta Engine Documentation
Provides an object which can be scoped and is static within a thread (e.g. tests). Based on http://startbigthinksmall.wordpress.com/2008/04/24/nice-free-and-reusable-net-ambient-context-pattern-implementation/ View code on GitHub
Inheritance Hierarchy

System Object
  DeltaEngine.Extensions ThreadStatic T 

Namespace: DeltaEngine.Extensions
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public class ThreadStatic<T>
Type Parameters

T

The ThreadStatic T  type exposes the following members.

Constructors

  NameDescription
Public methodThreadStatic T  
Initializes a new instance of the ThreadStatic T  class
Public methodThreadStatic T (T)
Initializes a new instance of the ThreadStatic T  class
Top
Methods

  NameDescription
Public methodUse
Top
Properties

  NameDescription
Public propertyCurrent
Public propertyCurrentOrDefault
Public propertyHasCurrent
Top
See Also