Share via


JoinableTaskContextNode.OnHangDetected Method

Definition

Overloads

OnHangDetected(JoinableTaskContext+HangDetails)

Invoked when a hang is suspected to have occurred involving the main thread.

OnHangDetected(TimeSpan, Int32, Guid)

Invoked when a hang is suspected to have occurred involving the main thread.

OnHangDetected(JoinableTaskContext+HangDetails)

Invoked when a hang is suspected to have occurred involving the main thread.

protected public:
 virtual void OnHangDetected(Microsoft::VisualStudio::Threading::JoinableTaskContext::HangDetails ^ details);
 virtual void OnHangDetected(Microsoft::VisualStudio::Threading::JoinableTaskContext::HangDetails const & details);
protected internal virtual void OnHangDetected (Microsoft.VisualStudio.Threading.JoinableTaskContext.HangDetails details);
abstract member OnHangDetected : Microsoft.VisualStudio.Threading.JoinableTaskContext.HangDetails -> unit
override this.OnHangDetected : Microsoft.VisualStudio.Threading.JoinableTaskContext.HangDetails -> unit
Protected Friend Overridable Sub OnHangDetected (details As JoinableTaskContext.HangDetails)

Parameters

details
JoinableTaskContext.HangDetails

Describes the hang in detail.

Remarks

A single hang occurrence may invoke this method multiple times, with increasing values in the NotificationCount values in the details parameter.

Applies to

OnHangDetected(TimeSpan, Int32, Guid)

Invoked when a hang is suspected to have occurred involving the main thread.

protected:
 virtual void OnHangDetected(TimeSpan hangDuration, int notificationCount, Guid hangId);
protected virtual void OnHangDetected (TimeSpan hangDuration, int notificationCount, Guid hangId);
abstract member OnHangDetected : TimeSpan * int * Guid -> unit
override this.OnHangDetected : TimeSpan * int * Guid -> unit
Protected Overridable Sub OnHangDetected (hangDuration As TimeSpan, notificationCount As Integer, hangId As Guid)

Parameters

hangDuration
TimeSpan

The duration of the current hang.

notificationCount
Int32

The number of times this hang has been reported, including this one.

hangId
Guid

A random GUID that uniquely identifies this particular hang.

Remarks

A single hang occurrence may invoke this method multiple times, with increasing values in the hangDuration parameter.

Applies to