Skip to content

Provide CommandContext in DI #480

Answered by drewburlingame
wayneyaoo asked this question in Q&A
Discussion options

You must be logged in to vote

It's not something the framework explicitly supports at the moment. There is a runInScope delegate you could use to create the scope that gives access to the CommandContext. I would need to do a little research to see how to make it available in the registration methods. If you know how to do it or have examples, I'd be interested in adding it or accepting a PR for it.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@wayneyaoo
Comment options

@drewburlingame
Comment options

@wayneyaoo
Comment options

@drewburlingame
Comment options

Answer selected by wayneyaoo
Comment options

You must be logged in to vote
2 replies
@wayneyaoo
Comment options

@drewburlingame
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants