Hexalith.Commons.Configurations
1.0.0
See the version list below for details.
dotnet add package Hexalith.Commons.Configurations --version 1.0.0
NuGet\Install-Package Hexalith.Commons.Configurations -Version 1.0.0
<PackageReference Include="Hexalith.Commons.Configurations" Version="1.0.0" />
<PackageVersion Include="Hexalith.Commons.Configurations" Version="1.0.0" />
<PackageReference Include="Hexalith.Commons.Configurations" />
paket add Hexalith.Commons.Configurations --version 1.0.0
#r "nuget: Hexalith.Commons.Configurations, 1.0.0"
#addin nuget:?package=Hexalith.Commons.Configurations&version=1.0.0
#tool nuget:?package=Hexalith.Commons.Configurations&version=1.0.0
Hexalith.Commons.UniqueIds
A lightweight C# library for generating unique identifiers in various formats. Part of the Hexalith framework.
Features
- Date/Time-based IDs: Generate unique 17-character IDs based on the current UTC time
- GUID-based IDs: Generate unique 22-character Base64 URL-safe IDs
Installation
dotnet add package Hexalith.Commons.UniqueIds
Usage
using Hexalith.Commons.UniqueIds;
// Generate a unique ID based on current UTC date/time (format: yyyyMMddHHmmssfff)
string dateTimeId = UniqueIdHelper.GenerateDateTimeId();
// Example: "20240401152237385"
// Generate a unique 22-character ID based on a GUID
string uniqueId = UniqueIdHelper.GenerateUniqueStringId();
// Example: "gZOW2EgVrEq5SBJLegYcVA"
Details
GenerateDateTimeId()
Generates a unique 17-character ID based on UTC date/time with format "yyyyMMddHHmmssfff". This method ensures uniqueness even when called multiple times within the same millisecond by incrementing the time if necessary.
Caution : Only one ID can be generated per millisecond.
GenerateUniqueStringId()
Generates a unique 22-character ID string derived from a GUID encoded in Base64 URL-safe format. This produces shorter, URL-friendly unique identifiers compared to standard GUIDs.
Github Project
Hexalith.Commons - A comprehensive .NET utility library providing common functionality for Hexalith projects.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. 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. |
-
net9.0
- FluentValidation.DependencyInjectionExtensions (>= 11.11.0)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.3)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.3)
- Microsoft.Extensions.Options (>= 9.0.3)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.0.3)
- Microsoft.Extensions.Options.DataAnnotations (>= 9.0.3)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Hexalith.Commons.Configurations:
Package | Downloads |
---|---|
Hexalith.DaprIdentityStore.Abstractions
Hexalith is a set of libraries to build a micro-service architecture. |
|
Hexalith.Security.Application
Hexalith is a set of libraries to build an application with micro-service architecture. |
|
Hexalith.KeyValueStorages.Abstractions
Hexalith KeyValueStorages utilities and helpers |
|
Hexalith.IdentityStores.Abstractions
Hexalith is a set of libraries to build an application with micro-service architecture. |
|
Hexalith.KeyValueStorages.Files
Hexalith KeyValueStorages utilities and helpers |
GitHub repositories
This package is not used by any popular GitHub repositories.