Merq.AutoMapper
2.0.0
Prefix Reserved
dotnet add package Merq.AutoMapper --version 2.0.0
NuGet\Install-Package Merq.AutoMapper -Version 2.0.0
<PackageReference Include="Merq.AutoMapper" Version="2.0.0" />
paket add Merq.AutoMapper --version 2.0.0
#r "nuget: Merq.AutoMapper, 2.0.0"
// Install Merq.AutoMapper as a Cake Addin #addin nuget:?package=Merq.AutoMapper&version=2.0.0 // Install Merq.AutoMapper as a Cake Tool #tool nuget:?package=Merq.AutoMapper&version=2.0.0
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
Product | Versions 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. |
-
.NETFramework 4.7.2
- AutoMapper (>= 12.0.0)
- Merq (>= 2.0.0)
- Merq.Core (>= 2.0.0)
- Microsoft.NETFramework.ReferenceAssemblies (>= 1.0.3)
- System.Diagnostics.DiagnosticSource (>= 6.0.0)
-
net6.0
- AutoMapper (>= 12.0.0)
- Merq (>= 2.0.0)
- Merq.Core (>= 2.0.0)
- Microsoft.NETFramework.ReferenceAssemblies (>= 1.0.3)
- System.Diagnostics.DiagnosticSource (>= 6.0.0)
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 | 154 | 1/29/2024 |
2.0.0-rc.6 | 60 | 1/29/2024 |
2.0.0-rc.5 | 62 | 1/27/2024 |
2.0.0-rc.3 | 494 | 7/10/2023 |
2.0.0-rc.2 | 93 | 7/10/2023 |
2.0.0-rc.1 | 98 | 7/7/2023 |
2.0.0-beta.4 | 90 | 7/6/2023 |
2.0.0-beta.3 | 222 | 11/19/2022 |
2.0.0-beta.2 | 130 | 11/18/2022 |
2.0.0-alpha | 129 | 11/16/2022 |