Class LinksFacadeDisposer
- Namespace
- Foundation.Data.Doublets.Cli
- Assembly
- Foundation.Data.Doublets.Cli.dll
Releases every IDisposable links facade (or transitions journal) reachable from a decorator chain.
public static class LinksFacadeDisposer
- Inheritance
-
LinksFacadeDisposer
- Inherited Members
Remarks
Links decorators wrap each other and ultimately own memory-mapped file handles. On POSIX a mapped file can still be unlinked, so leaking those handles goes unnoticed; Windows uses mandatory locking and fails the delete with IOException. Disposing the whole chain keeps behaviour identical on every platform.
Methods
Dispose(object?)
Disposes facade before its inner links facades,
so borrowers finish using dependencies before those dependencies close.
public static void Dispose(object? facade)