hashbrown

Hashbrown.AspNetCore · C# API reference

Hashbrown.AspNetCore.NativeSessionSave

Upcoming 0.1.0-preview.2 · Unreleased

public sealed record NativeSessionSave : System.IEquatable<Hashbrown.AspNetCore.NativeSessionSave>

Atomic native and public snapshot save, containing no reconstructed server authority.

Members

NativeSessionSave

public NativeSessionSave(string nativeJson, string publicRequest, System.Collections.Generic.IReadOnlyList<Hashbrown.AspNetCore.NativeToolCall> pendingCalls, System.Collections.Generic.IReadOnlyList<string> expectedBrowserCallIds, bool turnCompleted);

Clones collections before asynchronous persistence can observe them.

NativeSessionSave

public NativeSessionSave(string nativeJson, string publicRequest, System.Collections.Generic.IReadOnlyList<Hashbrown.AspNetCore.NativeToolCall> pendingCalls, System.Collections.Generic.IReadOnlyList<string> expectedBrowserCallIds, bool turnCompleted, Hashbrown.AspNetCore.NativeApprovalSnapshot approvals);

Requires explicit independently owned approval state when reading serialized payloads.

Approvals

public Hashbrown.AspNetCore.NativeApprovalSnapshot Approvals { get; }

Explicit saved approval state, never inferred from public history.

ExpectedBrowserCallIds

public System.Collections.Generic.IReadOnlyList<string> ExpectedBrowserCallIds { get; }

Visible browser calls expecting exact results.

NativeJson

public string NativeJson { get; }

Private opaque native session serialization.

PendingCalls

public System.Collections.Generic.IReadOnlyList<Hashbrown.AspNetCore.NativeToolCall> PendingCalls { get; }

Still-captured server descriptors.

PublicRequest

public string PublicRequest { get; }

Genuine-event projection of the admitted public request.

TurnCompleted

public bool TurnCompleted { get; }

Whether native execution completed its turn.