SnowMakerCore 2.0.0-beta

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

SnowMakerCore (.NET Core / .NET Standard version)

Originally created by Tatham Oddie as SnowMaker

A high performance, distributed unique id generator for Azure environments.

Ids are longs, not ugly GUIDs.

This forked version updated by Chris Adol to netstandard2.0/netstandard2.1 and async. Now uses Azure.Storage.Blobs nuget package.

This version is available on NuGet as SnowMakerCore: http://nuget.org/List/Packages/SnowMakerCore

Usage should be something like this (different to the original usage):

     var storageConnectionString = "UseDevelopmentStorage=true"; //Actually, get a real connection string from your configuration.
     const string containerName = "snowmakerKeys";
     var dataStore = await BlobOptimisticDataStore.CreateAsync(storageConnectionString, containerName);
     var cloudyKeyGenerator = new UniqueIdGenerator(dataStore);
     var orderNumber = await cloudyKeyGenerator.NextIdAsync("orderNumbers");

Another example useage (using AzureSasCredential approach):

     var accountName = "mystorageaccountname"; //Actually, get a real storage account name from your configuration.
     var serviceUri = new Uri($"https://{accountName}.blob.core.windows.net");
     var azureSasCredential = new DefaultAzureCredential();
     const string containerName = "snowmakerKeys";
     var dataStore = await BlobOptimisticDataStore.CreateAsync(serviceUri, azureSasCredential, containerName);
     var cloudyKeyGenerator = new UniqueIdGenerator(dataStore);
     var orderNumber = await cloudyKeyGenerator.NextIdAsync("orderNumbers");

This version is NOT affiliated to the original authors so please do not ask them for help with this version.

Documented at http://blog.tatham.oddie.com.au/2011/07/14/released-snowmaker-a-unique-id-generator-for-azure-or-any-other-cloud-hosting-environment/

Heavily inspired by, and some code copied from http://msdn.microsoft.com/en-us/magazine/gg309174.aspx

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
2.0.0-beta 178 11/24/2025
1.0.10 10,317 12/16/2022
1.0.9 42,895 1/21/2020
1.0.7 1,029 11/3/2019
1.0.6 868 11/3/2019
1.0.5 912 11/3/2019
1.0.4 34,402 10/17/2017
1.0.3 1,893 9/1/2017
1.0.1 1,560 8/3/2017
1.0.0 1,568 7/28/2017

Updated integration tests
Fixed intermittent failure of integration test by using static ConcurrentDictionary and further semaphores
Migrated to supported Azure.Storage.Blobs package