Skip to content

Add Support for KeyedServices #18992

@HakamFostok

Description

@HakamFostok

Description

ServiceProvider in Maui does not support KeyedServices

Steps to Reproduce

Microsoft.Maui.Controls.Application.Current?.Handler.MauiContext?.Services.GetRequiredKeyedService<T>(key);

Link to public reproduction project repository

No response

Version with bug

8.0.3

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

System.InvalidOperationException: 'This service provider doesn't support keyed services.'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions