-
Notifications
You must be signed in to change notification settings - Fork 868
Closed
Labels
bugThis issue is a bug.This issue is a bug.module/sdk-coreneeds-reproductionThis issue needs reproduction.This issue needs reproduction.
Description
After upgrading to the latest version, the EncryptAsync thread remais locked
using (var client = new AmazonKeyManagementServiceClient())
using (var plainText = new MemoryStream(Encoding.UTF8.GetBytes("Amazon Web Services")))
{
var request = new EncryptRequest
{
KeyId = "Aws-Kms-Login-Key",
Plaintext = plainText
};
var result = client.EncryptAsync(request).Result.CiphertextBlob.ToArray();
}
To overcome the issue, it is required to run the code within a different task
var result = Task.Run(() => _ = client.EncryptAsync(request).Result).Result.CiphertextBlob.ToArray();
will14smith and iagomartinezLBognanni and iagomartinez
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.module/sdk-coreneeds-reproductionThis issue needs reproduction.This issue needs reproduction.