Repository navigation
rtTools.Storage 0.1.0-preview.5
Pre-releaseCorrects two independently reproduced callback/cleanup defects in preview.4 without changing public signatures, record layouts or runtime dependencies.
BufferedQueuePersistent<T>and bothStreamPersistencewrappers reject source-I/O callback disposal before changing their own disposed state. If a synchronous Flush callback catches the rejection and returns successfully, the wrapper remains usable and later normal disposal closes once. Disposal after a storage failure remains allowed.- Direct
DataStorageandSynchronizedDataStorageconstruction honors closing policies even when an error notification throws. Secondary application exceptions from Failed/Closed/Throw retain the original opening exception and abort further recovery/clear. Actual source failures, including Close, retain first-source precedence. Explicit Throw-only remains nonclosing; owning wrappers preserve their established cleanup rules. - README states this exception/ownership contract explicitly.
Validation: 30 new contract groups join the existing checks; 251 package-only persistence/history groups (250 Contract PASS + one Characterization CONFIRMED), four State groups and all three sample lifecycles. Regression coverage includes explicit/inline Flush reentry, disposal after fault, distinct notification and source-close exceptions, same-object exception stack preservation, actual notification counts, policy controls and immediate exclusive file reopen with exact sentinel bytes. Clean checkout, exact package-only consumers and a standalone sample extracted from this package pass with zero build warnings/errors. Windows and Ubuntu CI verify the same commit, with independent review before publication.
The same 18 safe before/after cases run against released preview.4 and this package. Preview.4 has ten expected failures and eight passing controls: four wrapper lifetime failures, four constructor cases that bypass closing policies and two additional Throw-only exception-precedence cases. All 18 pass against this package.
Download the .nupkg into a local feed and install:
dotnet add package rtTools.Storage --version 0.1.0-preview.5 --source ./packagesrelease-verification.json binds source commit, exact package/library hashes, validation and CI; SHA256SUMS.txt covers both release files. Previous previews remain available.
Failure probes use controlled streams/application callbacks. File-handle release tests do not establish real disk-failure, crash or power-loss durability. Faulted owners must be disposed and files inspected before reopening; there is no rollback or automatic repair. Raw Stream access bypasses guards; cached values remain advisory. Default serialization requires trusted data.