Why Should BlobStorageService
Be Registered as Singleton
#8
markgmarkg
started this conversation in
General
Replies: 1 comment 2 replies
-
Hi Mark, Thank you - good question. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Daniel,
Quick "lifetime" question...
I perfectly understand why
BlobServiceClient
should be a singleton - it's MS guidance.services.AddSingleton(factory => new BlobServiceClient(storageConfiguration.ConnectionString));
I'm wondering what is a reason to register
BlobStorageService
as singleton.services.AddSingleton<IBlobStorageService, BlobStorageService>();
Thank you,
mg
Beta Was this translation helpful? Give feedback.
All reactions