Hexalith.Commons.Metadatas
1.66.5
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
<PackageReference Include="Hexalith.Commons.Metadatas" Version="1.66.5" />
<PackageVersion Include="Hexalith.Commons.Metadatas" Version="1.66.5" />
<PackageReference Include="Hexalith.Commons.Metadatas" />
paket add Hexalith.Commons.Metadatas --version 1.66.5
#r "nuget: Hexalith.Commons.Metadatas, 1.66.5"
#addin nuget:?package=Hexalith.Commons.Metadatas&version=1.66.5
#tool nuget:?package=Hexalith.Commons.Metadatas&version=1.66.5
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 | 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
- Hexalith.Commons.UniqueIds (>= 1.66.5)
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.