IDurableOrchestrationContext.ContinueAsNew(Object, Boolean) 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.
Restarts the orchestration by clearing its history.
public void ContinueAsNew (object input, bool preserveUnprocessedEvents = false);
abstract member ContinueAsNew : obj * bool -> unit
Public Sub ContinueAsNew (input As Object, Optional preserveUnprocessedEvents As Boolean = false)
Parameters
- input
- Object
The JSON-serializeable data to re-initialize the instance with.
- preserveUnprocessedEvents
- Boolean
If set to true
, re-adds any unprocessed external events into the new execution
history when the orchestration instance restarts. If false
, any unprocessed
external events will be discarded when the orchestration instance restarts.
Remarks
Large orchestration histories can consume a lot of memory and cause delays in instance load times. This method can be used to periodically truncate the stored history of an orchestration instance.
Note that any unprocessed external events will be discarded when an orchestration instance restarts itself using this method.
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기