OpenTAP 9.27
API Reference
|
A session represents a collection of data associated with running and configuring test plans: More...
Inherits IDisposable.
Public Member Functions | |
void | Dispose () |
Disposes the session. | |
void | RunInSession (Action action) |
Synchronously runs the specified action in the context of the given session More... | |
Static Public Member Functions | |
static Session | Create (SessionOptions options=SessionOptions.OverlayComponentSettings|SessionOptions.RedirectLogging, Guid? id=null) |
Creates a new session in the current TapThread context. The session lasts until the TapTread ends, or Dispose is called on the returned Session object. More... | |
static Session | Create (SessionOptions options) |
Creates a new session in the current TapThread context. The session lasts until the TapTread ends, or Dispose is called on the returned Session object. More... | |
static void | Start (Action action, SessionOptions options=SessionOptions.OverlayComponentSettings|SessionOptions.RedirectLogging) |
Creates a new session, and runs the specified action in the context of that session. When the acion completes, the session is Disposed automatically. | |
Public Attributes | |
readonly Session | Parent |
The parent session of the current session. This marks the session that started it. | |
Static Public Attributes | |
static readonly Session | RootSession |
The default/root session. This session is active when no other session is. | |
Properties | |
static Session | Current [get] |
Gets the currently active session. | |
Guid | Id [get] |
Gets the session ID for this session. | |
SessionOptions | Options [get] |
Gets the flags used to create/start this session. | |
A session represents a collection of data associated with running and configuring test plans:
|
static |
|
inlinestatic |
Creates a new session in the current TapThread context. The session lasts until the TapTread ends, or Dispose is called on the returned Session object.
options | Flags selected from the SessionOptions enum to customize the behavior of the session. |
id | Option to specify the ID of the Session |
|
inline |
Synchronously runs the specified action in the context of the given session
action | The action to run. |
OpenTAP 9.27 API built Wed Nov 27 2024 13:14:46