I\'m trying to follow the steps in this article using a vNext project and mvc 6. I\'ve been reading through the code here but still a little unsure how to implement this.
Sample model binder: https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNet.Mvc.Core/ModelBinding/CancellationTokenModelBinder.cs
How to register the binder in Startup.cs
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc().Configure(options =>
{
options.ModelBinders.Add(typeof(MyModelBinder));
});