Snowflake.Core
2.0.0
Twitter的分布式全局唯一ID算法,雪花(snowflake)算法。支持.NET Core 2.0。
Twitter's snowflake for .net core.
Install-Package Snowflake.Core -Version 2.0.0
dotnet add package Snowflake.Core --version 2.0.0
<PackageReference Include="Snowflake.Core" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Snowflake.Core --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Usage:
var worker = new IdWorker(1, 1);
long id = worker.NextId();
IdWorker
should be instantiated once.Otherwise,there will be repeat.
github:https://github.com/stulzq/snowflake-net
Usage:
var worker = new IdWorker(1, 1);
long id = worker.NextId();
IdWorker
should be instantiated once.Otherwise,there will be repeat.
github:https://github.com/stulzq/snowflake-net
Dependencies
-
.NETStandard 2.0
- No dependencies.
Used By
NuGet packages (18)
Showing the top 5 NuGet packages that depend on Snowflake.Core:
Package | Downloads |
---|---|
HttpReports
HttpReports is a lightweight APM system developed for Net Core
|
|
HttpReports.Dashboard
HttpReports is a lightweight APM system developed for Net Core
|
|
HttpReports.Storage.Abstractions
HttpReports is a lightweight APM system developed for Net Core , it is also suitable for use in a micro-service architecture.
|
|
Legend.Infrastructure
基础方法
|
|
DMS.BaseFramework.Common
一个通用的基础框架,支持通用配置文件热更新,HttpContext的注入,HttpClient请求,Excel导入导出,唯一随机数生成等其它扩展方法
|
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Snowflake.Core:
Repository | Stars |
---|---|
dotnetcore/HttpReports
HttpReports is an APM (application performance monitor) system for .Net Core.
|
|
yushuo1990/EasyCMS
EasyCms基于Asp.net Core 的后台快速开发框架,内容管理系统
|
Version History
Version | Downloads | Last updated |
---|---|---|
2.0.0 | 78,826 | 10/12/2017 |