Skip to content

Default Mediator configuration break Scoped services #64

Open
@Pycnomerus

Description

@Pycnomerus

Describe the bug
when using the library default, if you register anything that will be used by a command as scoped.
the application crash. with an impossible to resolve configuration error.

this will probably also break typed httpclient.

To Reproduce
Steps to reproduce the behavior:
when using mediator default registration
register a scoped service.
try to use it inside any IRequest object.

Expected behavior
all type of scopes registration should work without changing the default behaviour.
this is especially a concern since it's not an expected behavior, and introduce risk namely to use Typed HttpClient

Screenshots
image

Additional context
here's a test sample project to reproduce

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions