I'm using ASP.NET Core 2. I'm attempting to inject the DbContext into a custom IRouteConstraint. However, it appears that the context is disposed of before it attempts to call the Match method. I'm sure I'm overlooking something really simple here. Any id...