Merq.AutoMapper 2.0.0-rc.6

Prefix Reserved
This is a prerelease version of Merq.AutoMapper.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Merq.AutoMapper --version 2.0.0-rc.6                
NuGet\Install-Package Merq.AutoMapper -Version 2.0.0-rc.6                
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="Merq.AutoMapper" Version="2.0.0-rc.6" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Merq.AutoMapper --version 2.0.0-rc.6                
#r "nuget: Merq.AutoMapper, 2.0.0-rc.6"                
#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.
// Install Merq.AutoMapper as a Cake Addin
#addin nuget:?package=Merq.AutoMapper&version=2.0.0-rc.6&prerelease

// Install Merq.AutoMapper as a Cake Tool
#tool nuget:?package=Merq.AutoMapper&version=2.0.0-rc.6&prerelease                

Being able to loosely couple both events (and their consumers) and command execution (from their command handler implementations) is a key feature of Merq. To take this decoupling to the extreme, Merq allows a similar capability as allowed by the TypeScript/JavaScript in VSCode: you can just copy/paste an event/command definition as source into your assembly, and perform the regular operations with it (like Observe an event and Execute a command), in a "duck typing" manner.

As long as the types' full name match, the conversion will happen automatically. Since this functionality isn't required in many scenarios, and since there are a myriad ways to implement such an object mapping functionality, the Merq.Core package only provides the hooks to enable this, but does not provide any built-in implementation for it. In other words, no duck typing is performed by default.

The Merq.AutoMapper package provides one such implementation, based on the excelent AutoMapper library. It can be registered with the DI container as follows:

builder.Services.AddMessageBus<AutoMapperMessageBus>();
// register all services, including handlers and producers
builder.Services.AddServices();

For usage and authoring of commands and events, see Merq readme.

Sponsors

Clarius Org Kirill Osenkov MFB Technologies, Inc. Stephen Shaw Torutek DRIVE.NET, Inc. Daniel Gnägi Ashley Medway Keith Pickford Thomas Bolon Kori Francis Toni Wenzel Giorgi Dalakishvili Mike James Dan Siegel Reuben Swartz Jacob Foshee alternate text is missing from this package README image Eric Johnson Norman Mackay Certify The Web Ix Technologies B.V. David JENNI Jonathan Oleg Kyrylchuk Charley Wu Jakob Tikjøb Andersen Seann Alexander Tino Hager Mark Seemann Angelo Belchior Ken Bonny Simon Cropp agileworks-eu alternate text is missing from this package README image Zheyu Shen Vezel

Sponsor this project  

Learn more about GitHub Sponsors

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
2.0.0 144 1/29/2024
2.0.0-rc.6 58 1/29/2024
2.0.0-rc.5 60 1/27/2024
2.0.0-rc.3 492 7/10/2023
2.0.0-rc.2 91 7/10/2023
2.0.0-rc.1 96 7/7/2023
2.0.0-beta.4 88 7/6/2023
2.0.0-beta.3 220 11/19/2022
2.0.0-beta.2 128 11/18/2022
2.0.0-alpha 125 11/16/2022