Author Archives:

CQRS/MediatR implementation patterns

Early on in the CQRS/ES days, I saw a lot of questions on modeling problems with event sourcing. Specifically, trying to fit every square modeling problem into the round hole of event sourcing. This isn’t anything against event sourcing, but … Continue reading 

Posted in CQRS, DomainDrivenDesign, MediatR | 4 Comments

Vertical Slice Test Fixtures for MediatR and ASP.NET Core

One of the nicest side effects of using MediatR is that my controllers become quite thin. Here’s a typical controller: Unit testing this controller is a tad pointless – I’d only do it if the controller actions were doing something … Continue reading 

Posted in ASPNetCore, MediatR, Testing | 6 Comments

Contoso University updated to ASP.NET Core

I pushed out a new repository, Contoso University Core, that updated my “how we do MVC” sample app to ASP.NET Core. It’s still on full .NET framework, but I also plan to push out a .NET Core version as well. … Continue reading 

Posted in ASPNetCore | 1 Comment

MediatR Pipeline Examples

A while ago, I blogged about using MediatR to build a processing pipeline for requests in the form of commands and queries in your application. MediatR is a library I built (well, extracted from client projects) to help organize my … Continue reading 

Posted in MediatR | 16 Comments

AutoMapper 5.1 released

Release notes here: AutoMapper 5.1 Some big things from this release: Supporting portable class libraries (again), profile 111. Because converting projects from PCL to netstandard is hard More performance improvements (mainly in complex mappings), 70% faster in our benchmarks Easy … Continue reading 

Posted in AutoMapper | 9 Comments

Integrating AutoMapper with ASP.NET Core DI

Part of the release of ASP.NET Core is a new DI framework that’s completely integrated with the ASP.NET pipeline. Previous ASP.NET frameworks either had no DI or used service location in various formats to resolve dependencies. One of the nice … Continue reading 

Posted in ASPNetCore, AutoMapper, DependencyInjection | 22 Comments

MediatR Extensions for Microsoft Dependency Injection Released

To help those building applications using the new Microsoft DI libraries (used in Orleans, ASP.NET Core, etc.), I pushed out a helper package to register all of your MediatR handlers into the container. MediatR.Extensions.Microsoft.DependencyInjection To use, just add the AddMediatR … Continue reading 

Posted in ASPNetCore, MediatR | 8 Comments

HtmlTags 4.1 Released for ASP.NET 4 and ASP.NET Core

One of the libraries that I use on most projects (but probably don’t talk about it much) is now updated for the latest ASP.NET Core MVC. In order to do so, I broke out the classic ASP.NET and ASP.NET Core … Continue reading 

Posted in ASPNetCore, ASPNETMVC | Leave a comment

AutoMapper 5.0 Released

Release notes: 5.0.0 5.0.1 Today I pushed out AutoMapper 5.0.1, the culmination of about 9 months of work from myself and many others to build a better, faster AutoMapper. Technically I pushed out a 5.0.0 package last week, but it … Continue reading 

Posted in AutoMapper | 6 Comments

AutoMapper 5.0 speed increases

Just an update on the work we’ve been doing to speed up AutoMapper. I’ve captured times to map some common scenarios (1M mappings). Time is in seconds:   Flattening Ctor Complex Deep Native 0.0148 0.0060 0.9615 0.2070 5.0 0.2203 0.1791 … Continue reading 

Posted in AutoMapper | 15 Comments