Skip to content

Enable used of TokenAcquistion for keyed collections. #3440

@keegan-caruso

Description

@keegan-caruso

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);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions