Table of Contents

Class ActivityStack

Namespace
Ranorex.Core.Reporting
Assembly
Ranorex.Core.dll

Represents a stack of report activities that is managed by an ActivityContext.

public sealed class ActivityStack : IDisposable
Inheritance
ActivityStack
Implements
Inherited Members

Properties

Current

public static Activity Current { get; }

Property Value

Activity

CurrentActivity

public Activity CurrentActivity { get; }

Property Value

Activity

Instance

Get the ActivityStack for the current thread.

public static ActivityStack Instance { get; }

Property Value

ActivityStack

IsPaused

public bool IsPaused { get; }

Property Value

bool

RootActivity

public Activity RootActivity { get; }

Property Value

Activity

Methods

Begin(Activity)

public static void Begin(Activity activity)

Parameters

activity Activity

Clear()

public static void Clear()

Dispose()

public void Dispose()

End(ActivityStatus)

public static void End(ActivityStatus result)

Parameters

result ActivityStatus

GetInstance(Thread)

public static ActivityStack GetInstance(Thread thread)

Parameters

thread Thread

Returns

ActivityStack

RequestPause()

Request to pause reporting of activities on next begin, end or update.

public void RequestPause()

Resume()

Resume reporting of activities on the stack.

public void Resume()

Update()

public static void Update()

UpdateCurrent()

public void UpdateCurrent()

VisitAll(ActivityVisitorDelegate)

public void VisitAll(ActivityVisitorDelegate callback)

Parameters

callback ActivityVisitorDelegate

Events

AfterEndActivity

public event EventHandler AfterEndActivity

Event Type

EventHandler

BeginActivity

Occurs after a report IActivity began.

public event EventHandler BeginActivity

Event Type

EventHandler

EndActivity

Occurs after a report IActivity ended.

public event EventHandler EndActivity

Event Type

EventHandler

Paused

Occurs before reporting of activities is paused.

public event EventHandler Paused

Event Type

EventHandler

Resumed

Occurs after reporting of activities resumed from pause.

public event EventHandler Resumed

Event Type

EventHandler

UpdateActivity

Occurs after a report IActivity updated.

public event EventHandler UpdateActivity

Event Type

EventHandler