EventStore.Tools.PositionRepository.Gprc 1.4.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package EventStore.Tools.PositionRepository.Gprc --version 1.4.5
                    
NuGet\Install-Package EventStore.Tools.PositionRepository.Gprc -Version 1.4.5
                    
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="EventStore.Tools.PositionRepository.Gprc" Version="1.4.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EventStore.Tools.PositionRepository.Gprc" Version="1.4.5" />
                    
Directory.Packages.props
<PackageReference Include="EventStore.Tools.PositionRepository.Gprc" />
                    
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 EventStore.Tools.PositionRepository.Gprc --version 1.4.5
                    
#r "nuget: EventStore.Tools.PositionRepository.Gprc, 1.4.5"
                    
#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 EventStore.Tools.PositionRepository.Gprc@1.4.5
                    
#: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=EventStore.Tools.PositionRepository.Gprc&version=1.4.5
                    
Install as a Cake Addin
#tool nuget:?package=EventStore.Tools.PositionRepository.Gprc&version=1.4.5
                    
Install as a Cake Tool

Position Repository for KurrentDB

A lightweight library for persisting and retrieving the last processed position in a KurrentDB (formerly EventStoreDB) stream. Useful when you need to resume a subscription from where you left off after a restart.

The position is saved to a dedicated KurrentDB stream (capped at 1 event). To avoid excessive writes during fast processing, saves are batched on a configurable interval (default: 1 second).

Packages

Package Target Description
EventStore.Tools.PositionRepository.Gprc net8.0 Recommended. Uses KurrentDB.Client (gRPC)
EventStore.Tools.PositionRepository netstandard2.0 Legacy. Uses the old TCP EventStore.Client

Installation

PM> Install-Package EventStore.Tools.PositionRepository.Gprc
dotnet add package EventStore.Tools.PositionRepository.Gprc

Legacy TCP package

PM> Install-Package EventStore.Tools.PositionRepository
dotnet add package EventStore.Tools.PositionRepository

Usage

Create the repository

var client = new KurrentDBClient(KurrentDBClientSettings.Create("esdb://localhost:2113?tls=false"));

var positionRepo = new PositionRepository(
    positionStreamName: "my-subscription-position",
    positionEventType: "PositionStored",
    client: client);

Save the current position

positionRepo.Set(resolvedEvent.OriginalPosition.Value);

Resume from the last saved position

if (positionRepo.TryGet(out var position))
{
    await client.SubscribeToAllAsync(position, eventAppeared);
}

Optional: disable the timer and save on every event

// Pass interval: 0 to save immediately on every Set() call
var positionRepo = new PositionRepository("my-position", "PositionStored", client, interval: 0);

Cutting a Release

Releases are published to NuGet via GitHub Actions and triggered manually.

Prerequisites

  • A NUGET_API_KEY secret must be set in the repository under Settings → Secrets and variables → Actions

Publish EventStore.Tools.PositionRepository.Gprc

  1. Go to Actions → Publish EventStore.Tools.PositionRepository.Gprc → Run workflow
  2. Leave the version field empty to auto-bump the patch (e.g. 1.4.41.4.5), or enter a specific version (e.g. 1.5.0) for a minor/major bump
  3. Click Run workflow

The workflow will:

  • Update the version in the .csproj
  • Build and pack the NuGet package
  • Push it to NuGet.org
  • Commit the version bump and create a gprc-<version> tag

Publish EventStore.Tools.PositionRepository (legacy)

Same steps as above but use Actions → Publish EventStore.Tools.PositionRepository.
A legacy-<version> tag is created on completion.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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 (1)

Showing the top 1 NuGet packages that depend on EventStore.Tools.PositionRepository.Gprc:

Package Downloads
Linker.Core

Replicate data between KurrentDb (former EventStore) instances

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.4.6 261 5/22/2026
1.4.5 409 5/22/2026
1.4.4 110 5/18/2026
1.4.3 2,975 6/6/2025
1.4.2 260 6/5/2025
1.4.1 255 6/5/2025
1.4.0 1,859 6/3/2025
1.3.1 292 6/3/2025
1.3.0 313 5/27/2025
1.2.0 956 4/1/2025
1.1.1 207 1/27/2025
1.1.0 1,036 1/24/2025
1.0.3 881 11/7/2024
1.0.2 204 11/6/2024
1.0.1 213 11/6/2024
1.0.0 654 10/16/2023

upgrade KurrentDB.Client to 1.4.0 to address security vulnerabilities