In a dotnet core 3.1 Web API, I have defined an custom AuthorizationHandler. The code to register the Handler in the ConfigureServices usually looks like this:
ConfigureServices