From 3d30ab7309b6ccdcc2bad4e90180936ab4e0df30 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Fri, 28 May 2021 11:01:06 +0200 Subject: [PATCH] Config: Remove DecryptConnectionStrings --- Modules.Config/ConfigManager.vb | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/Modules.Config/ConfigManager.vb b/Modules.Config/ConfigManager.vb index 37c9b014..f471fb08 100644 --- a/Modules.Config/ConfigManager.vb +++ b/Modules.Config/ConfigManager.vb @@ -166,27 +166,6 @@ Public Class ConfigManager(Of T) End Try End Function - Public Function DecryptConnectionStrings() As Boolean - Try - Dim oType As Type = GetType(T) - Dim oProperties = oType.GetProperties() - Dim oEncryption = New EncryptionLegacy() - - For Each oProperty In oProperties - If Attribute.IsDefined(oProperty, GetType(ConnectionStringAttribute)) Then - Dim oValue = oProperty.GetValue(_Config, Nothing) - Dim oDecryptedValue = oEncryption.DecryptConnectionString(oValue) - oProperty.SetValue(_Config, oDecryptedValue, Nothing) - End If - Next - - Return True - Catch ex As Exception - _Logger.Error(ex) - Return False - End Try - End Function - ''' ''' Copies all properties from Source to Target, except those who have an attribute ''' listed in ExcludedAttributeTypes