Skip to content

Commit 288b90e

Browse files
committed
Remove AWSCredentials registration since its disposal by the framework breaks FallbackCredentialsFactory's assumptions
RefreshingAWSCredentials will throw an exception if it's been disposed of (and used via FallbackCredentialsFactory)
1 parent 7393275 commit 288b90e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

extensions/src/AWSSDK.Extensions.NETCore.Setup/ServiceCollectionExtensions.cs

-2
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,6 @@ private static IServiceCollection AddCredentialsFactoryInternal(
248248
collection.Add(serviceDescriptor);
249249
}
250250

251-
collection.TryAddTransient<AWSCredentials>(sp => sp.GetRequiredService<IAWSCredentialsFactory>().Create());
252-
253251
return collection;
254252
}
255253

0 commit comments

Comments
 (0)