Partager via


JoinableTaskContext.HangDetails.EntryMethod Property

Definition

Gets the method that served as the entrypoint for the JoinableTask that now blocks a thread.

public:
 property System::Reflection::MethodInfo ^ EntryMethod { System::Reflection::MethodInfo ^ get(); };
public System.Reflection.MethodInfo EntryMethod { get; }
public System.Reflection.MethodInfo? EntryMethod { get; }
member this.EntryMethod : System.Reflection.MethodInfo
Public ReadOnly Property EntryMethod As MethodInfo

Property Value

Remarks

The method indicated here may not be the one that is actually blocking a thread, but typically a deadlock is caused by a violation of a threading rule which is under the entrypoint's control. So usually regardless of where someone chooses the block a thread for the completion of a JoinableTask, a hang usually indicates a bug in the code that created it. This value may be used to assign the hangs to different buckets based on this method info.

Applies to