JoinableTaskContextNode.OnHangDetected Método

Definição

Sobrecargas

OnHangDetected(JoinableTaskContext+HangDetails)

Chamado quando uma falha suspeita ter ocorrido envolvendo o thread principal.

OnHangDetected(TimeSpan, Int32, Guid)

Chamado quando uma falha suspeita ter ocorrido envolvendo o thread principal.

OnHangDetected(JoinableTaskContext+HangDetails)

Chamado quando uma falha suspeita ter ocorrido envolvendo o thread principal.

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)

Parâmetros

details
JoinableTaskContext.HangDetails

Descreve o travamento em detalhes.

Comentários

Uma ocorrência de suspensão única pode invocar esse método várias vezes, com valores crescentes nos NotificationCount valores no details parâmetro.

Aplica-se a

OnHangDetected(TimeSpan, Int32, Guid)

Chamado quando uma falha suspeita ter ocorrido envolvendo o thread principal.

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)

Parâmetros

hangDuration
TimeSpan

A duração da falha atual.

notificationCount
Int32

O número de vezes que esse bloqueio foi relatado, incluindo este.

hangId
Guid

Um GUID aleatório que identifica exclusivamente essa falha específica.

Comentários

Uma ocorrência de suspensão única pode invocar esse método várias vezes, com valores crescentes no hangDuration parâmetro.

Aplica-se a