mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-08 01:28:29 -05:00
Handle Encryption keys changed notification (#1955)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user