Skip to content

I want to be able to automatically register context classes with the service provider using attributes #18

@jamescrosswell

Description

@jamescrosswell

Contextual classes (like JumpContext in the Sample application) need to be instantiated with Scoped lifetimes by the service provider... which means they have to be registered first. It's annoying having to register each one manually/individually in the ConfigureServices method. It would be nice to be able to decorate a class with a [RouteContextAttribute] or something and have these discovered/registered automatically when we call AddCommandRouting().

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions