ISuspendibleRegisteredObject.Suspend Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when ASP.NET notifies an application that a process is being suspended.
public:
Action ^ Suspend();
public Action Suspend ();
abstract member Suspend : unit -> Action
Public Function Suspend () As Action
Returns
Remarks
The Suspend method must not throw exceptions, otherwise the behavior is undefined and the process will likely be terminated. The Suspend method should not block execution, because after five seconds ASP.NET will allow the process to be suspended, even if not all Suspend methods have completed.
If a callback returns, it will be invoked when the process resumes from suspension. The Suspend method may return null
if it does not have to be notified when the process resumes.
The Suspend method is supported only when running in IIS integrated mode. The ASP.NET runtime does not guarantee that the Suspend method will ever fire.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈