OpenTAP 9.34
API Reference
OpenTap.SessionLocal< T > Class Template Reference

Used to hold a value that is specific to a session. More...

Public Member Functions

 SessionLocal (T rootValue, bool autoDispose=true)
 Used to hold a value that is specific to a session. Initializes a session local with a root/default value.
 
 SessionLocal (bool autoDispose=true)
 Used to hold a value that is specific to a session. Initializes a session local without a root/default value.
 

Properties

bool AutoDispose [get]
 Automatically dispose the value when all threads in the session has completed. Only has any effect if T is IDisposable.
 
Value [get, set]
 Session specific value.
 

Detailed Description

Used to hold a value that is specific to a session.

Constructor & Destructor Documentation

◆ SessionLocal() [1/2]

OpenTap.SessionLocal< T >.SessionLocal ( T rootValue,
bool autoDispose = true )
inline

Used to hold a value that is specific to a session. Initializes a session local with a root/default value.

Parameters
rootValueDefault value set at the root session.
autoDisposeTrue to automatically dispose the value when all threads in the session has completed. Only has any effect if T is IDisposable.

◆ SessionLocal() [2/2]

OpenTap.SessionLocal< T >.SessionLocal ( bool autoDispose = true)
inline

Used to hold a value that is specific to a session. Initializes a session local without a root/default value.

Parameters
autoDisposeTrue to automatically dispose the value when all threads in the session has completed. Only has any effect if T is IDisposable.

OpenTAP 9.34 API built Wed Jul 1 2026 09:21:15