Click or drag to resize

ScopedInstanceT Class

Provides a generic item that can be scoped statically as a singleton; avoids the need to define a threadstatic variable. Also provides a consistent model for providing this service.
Inheritance Hierarchy
SystemObject
  com.espertech.esper.compatScopedInstanceT

Namespace:  com.espertech.esper.compat
Assembly:  NEsper.Compat (in NEsper.Compat.dll) Version: 8.0.0.0
Syntax
C#
public class ScopedInstance<T>
where T : class

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "T:com.espertech.esper.compat.ScopedInstance`1"]

The ScopedInstanceT type exposes the following members.

Constructors
  NameDescription
Public methodScopedInstanceT
Initializes a new instance of the ScopedInstanceT class
Top
Properties
  NameDescription
Public propertyStatic memberCurrent
Gets the current instance value.
Public propertyStatic memberIsSet
Top
Methods
  NameDescription
Public methodStatic memberSet
Sets the specified instance.
Top
See Also