OpenTAP 9.25
API Reference
Public Member Functions | Properties | List of all members
OpenTap.SessionLocal< T > Class Template Reference

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

Inherits OpenTap.ISessionLocal.

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. More...
 
 SessionLocal (bool autoDispose=true)
 Used to hold a value that is specific to a session. Initializes a session local without a root/default value. More...
 

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 [getset]
 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 ( 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.25 API built Tue Aug 6 2024 07:49:24