Handle Encryption keys changed notification (#1955)

This commit is contained in:
Cheena Malhotra
2023-03-21 21:26:11 -07:00
committed by GitHub
parent 0c99327429
commit 7dc5785381
3 changed files with 58 additions and 45 deletions

View File

@@ -28,7 +28,7 @@ namespace Microsoft.SqlTools.Authentication.Utility
/// </summary>
/// <param name="key">(out) Key used for encryption/decryption</param>
/// <param name="iv">(out) IV used for encryption/decryption</param>
public delegate void IvKeyReadCallback(out string key, out string iv);
public delegate (string key, string iv) IvKeyReadCallback();
/// <summary>
/// Lock objects for serialization
@@ -97,7 +97,7 @@ namespace Microsoft.SqlTools.Authentication.Utility
{
if (this._key == null || this._iv == null)
{
this._ivKeyReadCallback(out string key, out string iv);
(string key, string iv) = this._ivKeyReadCallback();
if (key != null)
{