title: How do I register and use a MediatR pipeline handler, for ASP.NET Core?
body: <p>I'm using ASP.NET Core, the latest MediatR, and MediatR <a href="http://github.com/jbogard/MediatR.Extensions.Microsoft.DependencyInjection" rel="noreferrer">extension for Core's DI</a>.</p>
  
  <p>I'm trying to set up a pipeline with validation, <a href="http://lostechies.com/jimmybogard/2016/10/13/mediatr-pipeline-examples/" rel="noreferrer">using the official blog post</a>. The example <a href="http://gist.github.com/jbogard/473abe269278a3f8d9b55b8913f39d3e#file-validatorpipeline-cs" rel="noreferrer">is here</a>.</p>
  
  <p>I don't understand how to register/use that pipeline class. Another <a href="http://lostechies.com/jimmybogard/2014/09/09/tackling-cross-cutting-concerns-with-a-mediator-pipeline/" rel="noreferrer">blog post</a> shows how to do this, but I think it's for AutoFac.</p>
  
  <p>How do I do this for the built-in container?</p>