ConvergeERP.Shared.Sequencer.Core
0.0.5-beta
dotnet add package ConvergeERP.Shared.Sequencer.Core --version 0.0.5-beta
NuGet\Install-Package ConvergeERP.Shared.Sequencer.Core -Version 0.0.5-beta
<PackageReference Include="ConvergeERP.Shared.Sequencer.Core" Version="0.0.5-beta" />
<PackageVersion Include="ConvergeERP.Shared.Sequencer.Core" Version="0.0.5-beta" />
<PackageReference Include="ConvergeERP.Shared.Sequencer.Core" />
paket add ConvergeERP.Shared.Sequencer.Core --version 0.0.5-beta
#r "nuget: ConvergeERP.Shared.Sequencer.Core, 0.0.5-beta"
#:package ConvergeERP.Shared.Sequencer.Core@0.0.5-beta
#addin nuget:?package=ConvergeERP.Shared.Sequencer.Core&version=0.0.5-beta&prerelease
#tool nuget:?package=ConvergeERP.Shared.Sequencer.Core&version=0.0.5-beta&prerelease
ConvergeERP.Shared.Sequencer.Core
Core abstractions for sequence number generation in ConvergeERP applications.
Contents
ISequenceNumberGenerator- Async interface for generating unique sequence numbersGeneratedSequenceValue- 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 generationSequenceCreatedIntegrationEvent- Published when a new sequence is definedSequenceResetIntegrationEvent- Published when a sequence is resetSequenceGenerationFailedIntegrationEvent- Published on generation failures
| 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
- AWSSDK.S3 (>= 4.0.25.1)
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 |