Author Archives: Jimmy Bogard

About Jimmy Bogard

I'm a technical architect with Headspring in Austin, TX. I focus on DDD, distributed systems, and any other acronym-centric design/architecture/methodology. I created AutoMapper and am a co-author of the ASP.NET MVC in Action books.

New Year, New Blog

One of my resolutions this year was to take ownership of my digital content, and as such, I’ve launched a new blog at I’m keeping all my existing content on Los Techies, where I’ve been humbled to be a part of … Continue reading 

Posted in Personal | 4 Comments

Dealing with Duplication in MediatR Handlers

We’ve been using MediatR (or some manifestation of it) for a number of years now, and one issue that comes up frequently is “how do I deal with duplication”. In a traditional DDD n-tier architecture, you had: Controller Service Repository … Continue reading 

Posted in DomainDrivenDesign, MediatR | 7 Comments

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 | 17 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 | 10 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 | 7 Comments

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 | 31 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 | 13 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 | 29 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 | 9 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