Papst.EventStore.FileSystem 7.0.12

dotnet add package Papst.EventStore.FileSystem --version 7.0.12
                    
NuGet\Install-Package Papst.EventStore.FileSystem -Version 7.0.12
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Papst.EventStore.FileSystem" Version="7.0.12" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Papst.EventStore.FileSystem" Version="7.0.12" />
                    
Directory.Packages.props
<PackageReference Include="Papst.EventStore.FileSystem" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Papst.EventStore.FileSystem --version 7.0.12
                    
#r "nuget: Papst.EventStore.FileSystem, 7.0.12"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Papst.EventStore.FileSystem@7.0.12
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Papst.EventStore.FileSystem&version=7.0.12
                    
Install as a Cake Addin
#tool nuget:?package=Papst.EventStore.FileSystem&version=7.0.12
                    
Install as a Cake Tool

FileSystem Implementation for Papst.EventStore

File system based implementation of the Papst.EventStore. This implementation is intended for testing and demonstration purposes only - it is not recommended for production use.

Usage

High-Level Event Store (IEventStore)

IServiceCollection services = new ServiceCollection();
var config = new ConfigurationBuilder()
    .AddInMemoryCollection(new Dictionary<string, string> { { "Path", "/path/to/events" } })
    .Build();

services.AddFileSystemEventStore(config.GetSection("EventStore"));

var serviceProvider = services.BuildServiceProvider();
var eventStore = serviceProvider.GetRequiredService<IEventStore>();

Low-Level Event Store (ILowLevelEventStore)

For handling events as raw JSON objects without type information:

var lowLevelEventStore = serviceProvider.GetRequiredService<ILowLevelEventStore>();
var streamId = Guid.NewGuid();
var stream = await lowLevelEventStore.CreateAsync(streamId, "MyAggregate");

// Append a low-level event (as JObject)
var evt = JObject.Parse(@"{ ""fileData"": ""content"" }");
await stream.AppendAsync(Guid.NewGuid(), "FileCreated", evt);

Deleting an Event Stream

DeleteAsync recursively deletes the stream's directory (its index file and all event files) from disk:

await eventStore.DeleteAsync(streamId);

This is a permanent, hard delete of the on-disk files. If the stream directory does not exist, an EventStreamNotFoundException is thrown. The delete action is logged at Information level.

Configuration

The FileSystem implementation requires a configuration section with the path where events will be stored:

"EventStore": {
  "Path": "/path/to/events/directory"
}

Events are stored as JSON files organized by stream ID in the configured directory.

Important Notes

  • This implementation stores events on the local file system
  • Not suitable for production use
  • Best used for testing, prototyping, and demonstration purposes
  • Events are stored as JSON files; concurrent access must be managed carefully
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
7.0.12 91 9/19/2026
7.0.4 113 8/18/2026
6.4.5 105 8/10/2026
6.3.3 115 8/2/2026
6.2.2 116 7/19/2026
6.1.2 128 5/16/2026
6.0.14 104 5/6/2026
6.0.11 116 5/2/2026
6.0.9 134 4/12/2026
6.0.4 123 4/11/2026
6.0.3 131 4/11/2026
5.4.9 144 2/13/2026
5.4.3 149 1/7/2026
5.3.6 150 1/2/2026
5.2.36 248 9/22/2025
5.2.32 228 6/3/2025
5.2.30 211 2/12/2025
5.2.28 186 2/9/2025
5.2.25 184 2/9/2025
5.2.23 203 2/9/2025
Loading failed