BridgingIT.DevKit.Infrastructure.FileSystem
10.0.135
dotnet add package BridgingIT.DevKit.Infrastructure.FileSystem --version 10.0.135
NuGet\Install-Package BridgingIT.DevKit.Infrastructure.FileSystem -Version 10.0.135
<PackageReference Include="BridgingIT.DevKit.Infrastructure.FileSystem" Version="10.0.135" />
<PackageVersion Include="BridgingIT.DevKit.Infrastructure.FileSystem" Version="10.0.135" />
<PackageReference Include="BridgingIT.DevKit.Infrastructure.FileSystem" />
paket add BridgingIT.DevKit.Infrastructure.FileSystem --version 10.0.135
#r "nuget: BridgingIT.DevKit.Infrastructure.FileSystem, 10.0.135"
#:package BridgingIT.DevKit.Infrastructure.FileSystem@10.0.135
#addin nuget:?package=BridgingIT.DevKit.Infrastructure.FileSystem&version=10.0.135
#tool nuget:?package=BridgingIT.DevKit.Infrastructure.FileSystem&version=10.0.135
Empowering developers with modular components for modern application development, centered around Domain-Driven Design principles.
Our goal is to empower developers by offering modular components that can be easily integrated into your projects. Whether you're working with repositories, commands, queries, or other components, the bITDevKit provides flexible solutions that can adapt to your specific needs.
This repository includes the complete source code for the bITDevKit, along with a variety of sample applications located in the ./examples folder within the solution. These samples serve as practical demonstrations of how to leverage the capabilities of the bITDevKit in real-world scenarios. All components are available as nuget packages.
For the latest updates and release notes, please refer to the CHANGELOG.
Join us in advancing the world of software development with the bITDevKit!
Advanced Application Caching
WithFileSystemProvider() registers a complete native Application.Caching provider. It uses a dedicated root for payloads, checked metadata/indexes/journals, source ownership, publication fences, reader pins, and quota credits. It does not compose the cache over FileStorage or Blob Storage, add a hidden SQLite catalog, or replace Common.Caching.
using BridgingIT.DevKit.Application.Caching;
using BridgingIT.DevKit.Infrastructure.FileSystem;
using BridgingIT.DevKit.Infrastructure.FileSystem.Caching;
using Microsoft.Extensions.DependencyInjection;
services.AddApplicationCaching(cache => cache
.WithFileSystemProvider("report-disk", provider => provider
.Root(absoluteDedicatedCacheRoot)
.AccessKind(FileSystemStorageAccessKind.Local)
.Durability(FileSystemStorageDurability.Durable)
.MaxResidentBytes(128 * CacheDefaults.MiB)
.MaxStorageBytes(10 * CacheDefaults.GiB)
.MaxEntries(1000000))
.WithBinaryContract("report-file")
.WithBinaryCollection("reports", collection => collection
.UseProvider("report-disk")));
The root must be absolute and provider-owned. Applications do not edit, rename, remove, or read managed files directly. Logical keys never become arbitrary physical paths. The feature guide explains registration, exact-key/read/index behavior, binary ownership, and finite defaults.
Native profiles and acknowledgements
Local roots target Windows and Linux. SMB targets Windows and Linux clients; NFS targets Linux clients. Windows-to-NFS and mixed protocols over one root are not supported profiles. Native probes can reject unsupported authority or persistence semantics. Declaring an access kind does not qualify a particular share, server, mount, reconnect, or mixed-host deployment.
Durable is the default acknowledgement and includes the selected profile's data and namespace persistence barriers. Buffered explicitly accepts loss of recent acknowledged changes after storage or host failure. It retains atomic publication, conditions, fences, and integrity. A failed durable barrier never becomes buffered success.
Format one uses 256 lazy shards, 64-KiB metadata/index blocks, immutable chunks up to 1 MiB, checked commit receipts, and bounded journal/index work. Defaults checkpoint at 16 MiB, cap an uncheckpointed tail at 32 MiB, and cap a quota credit at 8 MiB. Current, staged, retired, and reader-owned data count until safe reclamation. Exact-key calls do not scan the complete root.
Offline recovery requires an external maintenance proof
FileSystemCacheRecovery.GetStateAsync reads the checked StoreId, generation, and recovery state without creating a store or scanning payloads. Before RecoverQuiescentAsync or ResetQuiescentAsync, stop or independently fence every reader, writer, sweeper, and recovery process on every host, and drain server-side replays. A timeout or stale marker does not establish that proof.
Pass the independently inspected store identity and allParticipantsStopped: true only after that maintenance boundary exists. The API records the acknowledgement; it cannot stop other hosts for the operator. Recovery durably fences earlier generations before cleanup and reopens only verified state. Damaged or uncertain committed state can return RequiresReset while keeping the root fenced. Reset is a separate explicit choice that discards the disposable cache and creates a new empty store identity.
Recovery and reset both require a valid checked root identity/profile. If cache-root.json itself cannot be verified, do not invent an identity or adopt the directory. Select a new dedicated empty cache root and rewarm, or manage disposal independently outside these APIs. Reset applies to damaged or uncertain data/control shards under a verified root, not an arbitrary unidentifiable directory.
An uncertain Buffered tail must not reopen an older readable generation that could undo acknowledged invalidation. Do not delete authority/journal files to force availability, infer native termination from elapsed time, or reconstruct missing committed metadata from leftover payloads. Recreate providers after completed offline recovery; old instances and continuations remain excluded.
See the operator procedure, native benchmark instructions, and recorded profiles. An incomplete profile or a smaller replacement dataset cannot establish performance at a larger scale. Local restart/crash tests and local measurements do not qualify external SMB/NFS, reconnect, independent-host authority, kernel crash, or power loss. Unexecuted deployment profiles remain unqualified.
Storage properties
Blob and document Properties are optional scalar metadata. Null preserves the existing bag on replacement/update, an empty bag clears it, and a non-empty bag replaces it. Inserts without properties return an empty bag. Typed .NET calls preserve the PropertyBagScalarCodec scalar types and copy byte arrays. HTTP retains ordinary JSON semantics. Transform metadata is separate from application properties. Properties are not indexed; Dimensions remain a separate planned feature.
The blob provider contracts and persisted blob formats have changed. Use newly created storage; this refactor supplies no migrations, backfill, or compatibility readers. See the blob guide and document guide.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- BridgingIT.DevKit.Application.Caching (>= 10.0.135)
- BridgingIT.DevKit.Application.Storage (>= 10.0.135)
- CsvHelper (>= 33.1.0)
- Ensure.That (>= 10.1.0)
- FluentValidation (>= 12.2.0)
- Humanizer.Core (>= 3.0.10)
- MessagePack (>= 3.1.12)
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Caching.Memory (>= 10.0.15)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.15)
- Microsoft.Extensions.DependencyInjection (>= 10.0.15)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.15)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Http (>= 10.0.15)
- Microsoft.Extensions.Logging (>= 10.0.15)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Options (>= 10.0.15)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.15)
- Microsoft.Extensions.Resilience (>= 10.11.1)
- NewId (>= 4.0.1)
- Newtonsoft.Json (>= 13.0.4)
- Scrutor (>= 4.2.2 && < 5.0.0)
- SharpCompress (>= 0.50.11)
- System.Formats.Cbor (>= 10.0.15)
- System.Threading.RateLimiting (>= 10.0.15)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BridgingIT.DevKit.Infrastructure.FileSystem:
| Package | Downloads |
|---|---|
|
BridgingIT.DevKit.Infrastructure.Windows
bITdevKit: Empowering developers with modular components for modern application development, centered around Domain-Driven Design principles. Our goal is to empower developers by offering modular components that can be easily integrated into your projects. Whether you're working with repositories, commands, queries, or other components, the bITDevKit provides flexible solutions that can adapt to your specific needs. |
GitHub repositories
This package is not used by any popular GitHub repositories.
