I need to override ASP.NET Core's default registration for a certain controller.
I've tried the below, but it resolves MyController from the automatic registration.
services.AddTransient((provider) => new MyController(...));
How can I override this?