Skip to content

Using non-singleton service in transform #1817

Answered by karelz
leoshusar asked this question in Q&A
Discussion options

You must be logged in to vote

Triage: This looks like general DI scoping problem -- can happen even if you have middleware and you need DbContext there.
We think that getting it manually is probably best. It should be documented somewhere in ASP.NET docs.
@halter73 @davidfowl any thoughts here?

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@leoshusar
Comment options

@halter73
Comment options

halter73 Aug 5, 2022
Collaborator

@leoshusar
Comment options

Answer selected by leoshusar
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants