How to use ProvisioningServiceClient properly? #3474
Unanswered
MaximTkachenko
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
ProvisioningServiceClient
implemetsIDisposable
interface, whereContractApiHttp.Dispose
is called. InContractApiHttp.Dispose
internal instances ofHttpClient
andHttpClientHandler
are disposed.Questions:
IHttpClientFactory
used there? As I understand, it's not a good thing to create and then disposeHttpClientHandler
on every request; and here is the next question;ProvisioningServiceClient
as a singleton? If yes, is it safe to use the same instances ofHttpClient
andHttpClientHandler
within the entire application lifetime?Beta Was this translation helpful? Give feedback.
All reactions