Hexalith.Commons.Metadatas 1.66.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package Hexalith.Commons.Metadatas --version 1.66.5
                    
NuGet\Install-Package Hexalith.Commons.Metadatas -Version 1.66.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="Hexalith.Commons.Metadatas" Version="1.66.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Hexalith.Commons.Metadatas" Version="1.66.5" />
                    
Directory.Packages.props
<PackageReference Include="Hexalith.Commons.Metadatas" />
                    
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 Hexalith.Commons.Metadatas --version 1.66.5
                    
#r "nuget: Hexalith.Commons.Metadatas, 1.66.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.
#addin nuget:?package=Hexalith.Commons.Metadatas&version=1.66.5
                    
Install Hexalith.Commons.Metadatas as a Cake Addin
#tool nuget:?package=Hexalith.Commons.Metadatas&version=1.66.5
                    
Install Hexalith.Commons.Metadatas as a Cake Tool

Hexalith Commons Metadatas

This project defines common metadata structures used within the Hexalith framework, primarily for messages and their context.

Classes

ContextMetadata

Represents contextual information associated with a message, such as:

  • Correlation ID (CorrelationId)
  • User ID (UserId)
  • Partition ID (PartitionId)
  • Received Date (ReceivedDate)
  • Sequence Number (SequenceNumber)
  • Session ID (SessionId)
  • Scopes (Scopes)

DomainMetadata

Represents metadata specific to a domain aggregate:

  • Aggregate ID (Id)
  • Aggregate Name (Name)

MessageMetadata

Represents metadata specific to the message itself:

  • Message ID (Id)
  • Message Name (Name)
  • Message Version (Version)
  • Associated Domain Metadata (Domain)
  • Creation Date (CreatedDate)

Metadata

A composite record that combines both MessageMetadata and ContextMetadata to provide a complete metadata picture for a message. It also includes helper methods like:

  • DomainGlobalId: Generates a globally unique identifier for the domain aggregate based on partition, name, and ID.
  • CreateDomainGlobalId(): Static and instance methods to construct the domain global ID.
  • ToLogString(): Provides a concise string representation suitable for logging.

Usage

These metadata classes are typically used together within message envelopes or event data structures to provide essential tracking, routing, and contextual information as messages flow through the system.

Product 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. 
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 Hexalith.Commons.Metadatas:

Package Downloads
Hexalith.EventStores.Abstractions

Hexalith EventStores utilities and helpers

Hexalith.EventStores

Hexalith EventStores utilities and helpers

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.1 238 6/13/2025
2.0.0 237 6/13/2025
1.66.5 112 4/11/2025
1.66.4 189 4/10/2025
1.66.3 149 4/9/2025
1.66.2 155 4/8/2025
1.66.1 151 4/8/2025
1.66.0 155 4/7/2025