Compartilhar via


JoinableTaskContext.OnHangDetected(TimeSpan, Int32, Guid) Method

Definition

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

protected public:
 virtual void OnHangDetected(TimeSpan hangDuration, int notificationCount, Guid hangId);
protected internal virtual void OnHangDetected (TimeSpan hangDuration, int notificationCount, Guid hangId);
abstract member OnHangDetected : TimeSpan * int * Guid -> unit
override this.OnHangDetected : TimeSpan * int * Guid -> unit
Protected Friend 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