The Waher.Events.Persistence project creates an even sink that stores incoming (logged) events in the local object database, as defined by Waher.Persistence. Event life time in the database is defined in the constructor. Searches can be made for historical events.
Install-Package Waher.Events.Persistence -Version 1.0.10
dotnet add package Waher.Events.Persistence --version 1.0.10
<PackageReference Include="Waher.Events.Persistence" Version="1.0.10" />
paket add Waher.Events.Persistence --version 1.0.10