OdinPlugs.SnowFlake 1.0.5

dotnet add package OdinPlugs.SnowFlake --version 1.0.5                
NuGet\Install-Package OdinPlugs.SnowFlake -Version 1.0.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="OdinPlugs.SnowFlake" Version="1.0.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OdinPlugs.SnowFlake --version 1.0.5                
#r "nuget: OdinPlugs.SnowFlake, 1.0.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.
// Install OdinPlugs.SnowFlake as a Cake Addin
#addin nuget:?package=OdinPlugs.SnowFlake&version=1.0.5

// Install OdinPlugs.SnowFlake as a Cake Tool
#tool nuget:?package=OdinPlugs.SnowFlake&version=1.0.5                

OdinPlugs.SnowFlake

简介:

用于生成和解析雪花ID

  1. 注入:
// 4种 注入方法
services.AddSingleton<IOdinSnowFlake>(provider => new OdinSnowFlake(1, 1));
services.AddSingletonSnowFlake(1,1);
services.AddTransientSnowFlake(1,1);
services.AddScopedSnowFlake(1,1);

使用方法:

//  创建雪花Id
OdinInjectCore.GetService<IOdinSnowFlake>().CreateSnowFlakeId();
//  解析雪花Id
OdinInjectCore.GetService<IOdinSnowFlake>().AnalyzeId(snowFlakeId);

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on OdinPlugs.SnowFlake:

Package Downloads
OdinPlugs.ApiLinkMonitor

Package Description

OdinPlugs.OdinWebApi

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.5 578 7/21/2021