.NETSDK neutral
Persist and resume in .NET
Capture and restore definition-bound Response Snapshots while keeping storage policy in the host.
Capture portable runtime state
A Response Snapshot records tagged answers, the current page, locale, durable lifecycle, timer anchors, the definition digest, and its own format version.
using Kajay;
using Kajay.Snapshots;
SurveyDefinition definition = SurveyDefinition.Parse(json).Definition;
Survey source = definition.CreateSurvey();
source.SetValue("email", KajayValue.From("person@example.com"));
string storedJson = source.CreateSnapshot().ToJson();
Survey restored = definition.CreateSurvey();
restored.RestoreSnapshot(SurveySnapshot.Parse(storedJson));Restore against the same definition
RestoreSnapshot rejects a mismatched definition before mutation and does not replay runtime events. The operation restores Kajay state, not host workflow state.