Skip to content

IWorkspaceManagedDocument

Definition

Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Source: IWorkspaceManagedDocument.cs

Marker interface for documents whose lifecycle is managed by a JsonWorkspace. When a workspace is disposed or reset, all registered documents implementing this interface are disposed, returning pooled resources.

public interface IWorkspaceManagedDocument : IJsonDocument, IDisposable

Remarks

Implemented by IMutableJsonDocument (builders) and by pooled value documents such as FixedJsonValueDocument. Not implemented by caller-owned immutable documents like ParsedJsonDocument.

Implements

IJsonDocument, IDisposable

Implemented By

FixedJsonValueDocument<T>, IMutableJsonDocument, JsonDocumentBuilder<T>

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue