Hexalith.Commons.UniqueIds
1.0.0
See the version list below for details.
dotnet add package Hexalith.Commons.UniqueIds --version 1.0.0
NuGet\Install-Package Hexalith.Commons.UniqueIds -Version 1.0.0
<PackageReference Include="Hexalith.Commons.UniqueIds" Version="1.0.0" />
<PackageVersion Include="Hexalith.Commons.UniqueIds" Version="1.0.0" />
<PackageReference Include="Hexalith.Commons.UniqueIds" />
paket add Hexalith.Commons.UniqueIds --version 1.0.0
#r "nuget: Hexalith.Commons.UniqueIds, 1.0.0"
#:package Hexalith.Commons.UniqueIds@1.0.0
#addin nuget:?package=Hexalith.Commons.UniqueIds&version=1.0.0
#tool nuget:?package=Hexalith.Commons.UniqueIds&version=1.0.0
Hexalith.Commons
A comprehensive .NET utility library providing common functionality for Hexalith projects.
Build Status
Stable (version tag):
Overview
Hexalith.Commons is a collection of utility classes, helpers, and extensions designed to support development across Hexalith projects. This library provides consistent and reusable components for handling common programming tasks.
Features
The library is organized into several key utility areas:
Assemblies
Utilities for working with .NET assemblies and reflection-based operations.
Common
General purpose utilities and helpers that don't fit into specific categories.
Configuration
Tools and extensions for managing application configuration:
- ISettings interface for strongly-typed settings
- Configuration validation using FluentValidation
- Helper methods for registering and validating configuration
- Settings exception handling
Dates
Date and time manipulation utilities.
Errors
Error handling, custom exceptions, and error management utilities.
Loggings
Extensions and helpers for consistent logging across applications.
Maths
Mathematical utility functions and extensions.
Objects
Object manipulation, comparison, and conversion utilities.
Reflections
Reflection-based utilities for working with types, properties, and methods at runtime.
Strings
String manipulation utilities:
- Format strings with named placeholders
- RFC1123 compliance checking
- Culture-invariant string conversions
- String to number conversions with proper culture handling
Tests
Testing helpers and utilities to simplify unit and integration tests.
Getting Started
Prerequisites
- .NET 8.0 or higher
Installation
You can add this library to your project using NuGet:
dotnet add package Hexalith.Commons
Usage Examples
String Utilities
using Hexalith.Extensions.Helpers;
// Convert a string to an integer using invariant culture
string numberStr = "42";
int number = numberStr.ToInteger();
// Check if a hostname is RFC 1123 compliant
bool isValid = "valid-host.example.com".IsRfc1123Compliant();
Configuration utilities
// Define settings class
public class MySettings : ISettings
{
public string? FirstName { get; set; }
public string? LastName { get; set; }
public static string ConfigurationName() => "Me";
}
// In startup code
services.ConfigureSettings<MySettings>(configuration);
// In a service
public class MyService
{
private readonly IOptions<MySettings> _settings;
public MyService(IOptions<MySettings> settings)
{
_settings = settings;
}
}
Building and Testing
The project uses standard .NET build tools and practices:
dotnet build
dotnet test
CI/CD
The repository includes GitHub Actions workflows for:
- Building and testing the code
- Publishing NuGet packages
- Version management
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome. Please feel free to submit a Pull Request.
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
- No dependencies.
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Hexalith.Commons.UniqueIds:
Package | Downloads |
---|---|
Hexalith.Commons.Metadatas
Hexalith is a set of libraries to build an application with micro-service architecture. |
|
Hexalith.KeyValueStorages
Hexalith KeyValueStorages utilities and helpers |
|
Hexalith.KeyValueStorages.Files
Hexalith KeyValueStorages utilities and helpers |
|
Hexalith.KeyValueStorages.DaprComponents
Hexalith KeyValueStorages utilities and helpers |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
2.1.7 | 0 | 9/20/2025 |
2.1.6 | 89 | 8/10/2025 |
2.1.5 | 217 | 8/5/2025 |
2.1.4 | 467 | 7/24/2025 |
2.1.3 | 149 | 7/9/2025 |
2.1.2 | 150 | 7/6/2025 |
2.1.1 | 150 | 7/6/2025 |
2.1.0 | 148 | 7/6/2025 |
2.0.6 | 147 | 7/6/2025 |
2.0.5 | 129 | 7/4/2025 |
2.0.4 | 127 | 7/4/2025 |
2.0.3 | 102 | 6/29/2025 |
2.0.2 | 152 | 6/24/2025 |
2.0.1 | 270 | 6/13/2025 |
2.0.0 | 269 | 6/13/2025 |
1.66.5 | 140 | 4/11/2025 |
1.66.4 | 216 | 4/10/2025 |
1.66.3 | 288 | 4/9/2025 |
1.66.2 | 231 | 4/8/2025 |
1.66.1 | 178 | 4/8/2025 |
1.66.0 | 174 | 4/7/2025 |
1.65.1 | 314 | 4/6/2025 |
1.65.0 | 165 | 4/6/2025 |
1.64.0 | 194 | 4/2/2025 |
1.63.1 | 169 | 4/2/2025 |
1.63.0 | 165 | 4/2/2025 |
1.0.0 | 160 | 4/2/2025 |