-
Notifications
You must be signed in to change notification settings - Fork 236
Open
Labels
Description
Summary
Enable Token Acquistion services to be registered into a keyed collection.
Motivation and goals
I want to be able to use Token Acquistion components as singleton components within a keyed collection. This is so other singletons can depend on the Token Acquistion components within a keyed collection, but so that the other registrations can remained scoped.
In scope
NA
Out of scope
NA
Risks / unknowns
It is new API surface area and would be inconsistent as no other apis in the project enable registration into keyed collections at this point.
Examples
services.AddTokenAcquisition(serviceKey: "myKey", isTokenAcquisitionSingleton: true);