Skip to content

Commit 4014711

Browse files
committed
Remove AWSCredentials registration since its disposal by the framework breaks FallbackCredentialsFactory's assumptions
1 parent 7393275 commit 4014711

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)