ConvergeERP.Shared.Sequencer.Core 0.0.5-beta

This is a prerelease version of ConvergeERP.Shared.Sequencer.Core.
dotnet add package ConvergeERP.Shared.Sequencer.Core --version 0.0.5-beta
                    
NuGet\Install-Package ConvergeERP.Shared.Sequencer.Core -Version 0.0.5-beta
                    
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="ConvergeERP.Shared.Sequencer.Core" Version="0.0.5-beta" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ConvergeERP.Shared.Sequencer.Core" Version="0.0.5-beta" />
                    
Directory.Packages.props
<PackageReference Include="ConvergeERP.Shared.Sequencer.Core" />
                    
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 ConvergeERP.Shared.Sequencer.Core --version 0.0.5-beta
                    
#r "nuget: ConvergeERP.Shared.Sequencer.Core, 0.0.5-beta"
                    
#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 ConvergeERP.Shared.Sequencer.Core@0.0.5-beta
                    
#: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=ConvergeERP.Shared.Sequencer.Core&version=0.0.5-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=ConvergeERP.Shared.Sequencer.Core&version=0.0.5-beta&prerelease
                    
Install as a Cake Tool

ConvergeERP.Shared.Sequencer.Core

Core abstractions for sequence number generation in ConvergeERP applications.

Contents

  • ISequenceNumberGenerator - Async interface for generating unique sequence numbers
  • GeneratedSequenceValue - Full metadata result from sequence generation
  • MassTransit request/response contracts for distributed scenarios
  • Integration events for event-driven architectures

Usage

This package contains only interfaces and contracts. For the implementation, install ConvergeERP.Shared.Sequencer.

// Inject the interface
public class MyService
{
    private readonly ISequenceNumberGenerator _sequencer;

    public MyService(ISequenceNumberGenerator sequencer)
    {
        _sequencer = sequencer;
    }

    public async Task<string> GenerateEmployeeCode()
    {
        // Simple: get next value as zero-padded string
        return await _sequencer.GetNextAsync("EMP", size: 6);  // "000001"
        
        // Or with full metadata
        var result = await _sequencer.GetNextDetailedAsync("EMP");
        return result.FormattedValue;  // "EMP-000001"
    }
}

Integration Events

Subscribe to sequence events for audit, caching, or downstream processing:

  • SequenceGeneratedIntegrationEvent - Published on every sequence generation
  • SequenceCreatedIntegrationEvent - Published when a new sequence is defined
  • SequenceResetIntegrationEvent - Published when a sequence is reset
  • SequenceGenerationFailedIntegrationEvent - Published on generation failures
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 (1)

Showing the top 1 NuGet packages that depend on ConvergeERP.Shared.Sequencer.Core:

Package Downloads
ConvergeERP.Shared.Sequencer

Thread-safe, EF Core-based sequence number generator. Implements ISequenceNumberGenerator with database persistence, auto-creation of sequences, and support for prefixes, suffixes, and padding.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.5-beta 101 6/19/2026
0.0.4-beta 313 5/8/2026
0.0.3-beta 123 5/7/2026
0.0.2-beta 68 5/6/2026
0.0.1-beta 278 3/27/2026