Skip to content

Sync and async middleware to manipulate scoped services from DI #247

@we4sz

Description

@we4sz

I'm trying to manipulate a scoped class in the ISlackRequestListener. Unfortunately it seems like all request has the same scope which makes it hard to use data from the request in the eventlisteners after.

What I'm trying to do, maybe it exists an easier way is to extract my ApplicationUser from the database based on the slack userid in the request so I don't need to do that in every handler.

Maybe someone here has a better solution for that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions