Proper clearing resources with FallbackCredentialsFactory #2484
-
I'm using |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@DmitryLukyanov Looking at the logic in
In each of the cases, the next generator is tried only if the previous generator returns exception in the construction process (in which case the object is never created), with Please let me know if this provides detailed flow, or, if by any chance certain condition is missed and needs to be evaluated. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hey @ashishdhingra , what will happen if let's say we have caught an exception when we call UPDATE: it looks like all resources including inner semaphore in ECSTaskCredentials will be eventually disposed as you told above, I just expected calling Dispose directly which I would consider more "best practice"-like approach. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
@DmitryLukyanov Looking at the logic in
FallbackCredentialsFactory
:delegate
.CredentialsGenerator
delegates.