The following worked for me, getting the specific value from the route
kernel.Bind<IRepo>().ToMethod(ctx => { var a = HttpContext.Current.Request.RequestContext.RouteData.Values["RouteDateValue"] if (a != null) { return new RepoA(a); } return new RepoB(); })
source share