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.
-
ProvisioningServiceClientimplemetsIDisposableinterface, whereContractApiHttp.Disposeis called. InContractApiHttp.Disposeinternal instances ofHttpClientandHttpClientHandlerare disposed.Questions:
IHttpClientFactoryused there? As I understand, it's not a good thing to create and then disposeHttpClientHandleron every request; and here is the next question;ProvisioningServiceClientas a singleton? If yes, is it safe to use the same instances ofHttpClientandHttpClientHandlerwithin the entire application lifetime?Beta Was this translation helpful? Give feedback.
All reactions