Table of Contents

Class LinksFacadeDisposer

Namespace
Foundation.Data.Doublets.Cli
Assembly
Foundation.Data.Doublets.Cli.dll

Releases every IDisposable links facade 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 and every inner links facade it references, innermost first.

public static void Dispose(object? facade)

Parameters

facade object

The outermost facade, or null.