Dhanman.Shared.Contracts 1.1.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Dhanman.Shared.Contracts --version 1.1.2
                    
NuGet\Install-Package Dhanman.Shared.Contracts -Version 1.1.2
                    
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="Dhanman.Shared.Contracts" Version="1.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Dhanman.Shared.Contracts" Version="1.1.2" />
                    
Directory.Packages.props
<PackageReference Include="Dhanman.Shared.Contracts" />
                    
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 Dhanman.Shared.Contracts --version 1.1.2
                    
#r "nuget: Dhanman.Shared.Contracts, 1.1.2"
                    
#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.
#:package Dhanman.Shared.Contracts@1.1.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Dhanman.Shared.Contracts&version=1.1.2
                    
Install as a Cake Addin
#tool nuget:?package=Dhanman.Shared.Contracts&version=1.1.2
                    
Install as a Cake Tool

Dhanman.Shared.Contracts

This project contains shared data transfer objects (DTOs), events, and message contracts used across multiple Dhanman microservices.


Purpose

  • Define common event and command contracts for inter-service communication.
  • Keep shared message schemas consistent and centralized.
  • Avoid tight coupling by sharing only contract definitions, not implementations.

Usage

  1. Reference this package from any microservice that needs to publish or consume these contracts.

  2. Use the DTOs and event classes here for RabbitMQ message serialization and deserialization.

  3. Keep contracts immutable and versioned carefully to maintain backward compatibility.


Example Contract

public class UserCreatedEvent
{
    public Guid UserId { get; set; }
    public Guid CompanyId { get; set; }
    public string FirstName { get; set; } = string.Empty;
    public string LastName { get; set; } = string.Empty;
    public string Email { get; set; } = string.Empty;
    public string PhoneNumber { get; set; } = string.Empty;
}
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.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.2 236 8/30/2025
1.3.1 166 8/29/2025
1.3.0 527 7/24/2025
1.2.9 659 7/16/2025
1.2.8 169 7/11/2025
1.2.7 189 7/11/2025
1.2.6 174 7/9/2025
1.2.5 200 7/7/2025
1.2.4 142 7/7/2025
1.2.3 149 7/7/2025
1.2.2 147 7/3/2025
1.2.1 143 7/3/2025
1.2.0 229 7/1/2025
1.1.9 144 7/1/2025
1.1.8 144 7/1/2025
1.1.7 145 7/1/2025
1.1.6 175 6/30/2025
1.1.5 144 6/30/2025
1.1.3 143 6/30/2025
1.1.2 160 6/30/2025
1.1.1 130 6/28/2025
1.0.10 124 6/27/2025
1.0.9 162 6/26/2025
1.0.8 144 6/26/2025
1.0.7 166 6/26/2025
1.0.6 169 6/26/2025
1.0.5 177 6/24/2025
1.0.4 147 6/24/2025
1.0.3 170 6/16/2025
1.0.2 213 5/18/2025
1.0.1 155 5/17/2025
1.0.0 220 5/16/2025
0.0.0-manual 207 5/16/2025