Replies: 3 comments
-
I used Then, I created a hosted service that allows us to inject values from DI into the handler by calling Please let me know if there is a better way. |
Beta Was this translation helpful? Give feedback.
-
As of today subclass or using the The danger we have found with the Can I ask what customizations you are doing or need for the request pipeline? |
Beta Was this translation helpful? Give feedback.
-
I need to use a special |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am looking at this document and trying to subclass the service client class to change the behavior of the request pipeline.
I am also using the
AddAWSService
method as follows to register the service client class with Dependency Injection.What is the preferred way to register the extended
CustomAmazonS3Client
class with DI?It could simply be registered as follows.
By default, service clients registered by the
AddAWSService
method are initialized by the ClientFactory class.If simply registered with
AddSingleton
, such initialization will not occur.I do not want to change or reimplement such initialization logic.
I would like to see methods like the following.
Beta Was this translation helpful? Give feedback.
All reactions