Skip to content

[Question] Best practices ServiceClient & Dependency Injection #312

Answered by MattB-msft
mVermaat asked this question in Q&A
Discussion options

You must be logged in to vote

Scoped or Singleton uses cases are situational, IE, what are you trying to accomplish in the function or asp.net core app.
We do not have a strong opinion on it and are using both processes in different services.

Mainly what we are testing is memory and isolation management options for us in API services (function and the like), when running at scale over a long period of time. Once we settle on a specific approach, we will build it into the client as an extension. In the meantime, we may provide a sample or 2 on the PowerApps Samples site based on current work.

Replies: 7 comments 14 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

@KimBon
Comment options

Answer selected by mVermaat
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
10 replies
@KimBon
Comment options

@FarmerenHE
Comment options

@KimBon
Comment options

@FarmerenHE
Comment options

@rappen
Comment options

Comment options

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

@khoait
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
9 participants
Converted from issue

This discussion was converted from issue #311 on September 07, 2022 16:38.