How do I share component registrations across application types?

Note for doc writing: This is that question where someone wants to use per-request lifetime scopes in a web app but some other scope in a different kind of app.