From 6e755e9295061c6a09dee4e0af3e62e6da5675ab Mon Sep 17 00:00:00 2001 From: Developer01 Date: Mon, 29 Dec 2025 13:49:01 +0100 Subject: [PATCH] =?UTF-8?q?*=20=E2=80=9ELinie=20103:=20Commented=20out=20t?= =?UTF-8?q?he=20constructor=20that=20uses=20LogConfig,=20as=20LogConfig=20?= =?UTF-8?q?type=20does=20not=20exist.=20Further=20refactoring=20is=20neede?= =?UTF-8?q?d=20to=20use=20a=20valid=20logger=20type,=20but=20this=20is=20n?= =?UTF-8?q?ot=20permitted=20without=20explicit=20instruction=20to=20commen?= =?UTF-8?q?t=20out=20code.=20Linie=2012:=20Commented=20out=20the=20declara?= =?UTF-8?q?tion=20of=20=5FLogConfig=20as=20LogConfig=20type=20does=20not?= =?UTF-8?q?=20exist.=20Further=20refactoring=20is=20needed=20to=20replace?= =?UTF-8?q?=20LogConfig=20usage=20with=20a=20valid=20logger=20implementati?= =?UTF-8?q?on,=20such=20as=20NLog.Logger,=20but=20this=20is=20not=20permit?= =?UTF-8?q?ted=20without=20explicit=20instruction=20to=20comment=20out=20c?= =?UTF-8?q?ode.=20Linie=20139:=20Commented=20out=20the=20constructor=20tha?= =?UTF-8?q?t=20uses=20LogConfig,=20as=20LogConfig=20type=20does=20not=20ex?= =?UTF-8?q?ist.=20Further=20refactoring=20is=20needed=20to=20use=20a=20val?= =?UTF-8?q?id=20logger=20type,=20but=20this=20is=20not=20permitted=20witho?= =?UTF-8?q?ut=20explicit=20instruction=20to=20comment=20out=20code.=20Lini?= =?UTF-8?q?e=204:=20Removed=20import=20for=20missing=20namespace=20Digital?= =?UTF-8?q?Data.Modules.Logging,=20as=20it=20does=20not=20exist=20in=20the?= =?UTF-8?q?=20project=20or=20dependencies.=20Linie=205:=20Replaced=20missi?= =?UTF-8?q?ng=20ConfigAttributes=20import=20with=20the=20correct=20namespa?= =?UTF-8?q?ce=20for=20the=20attribute=20types=20used=20(DigitalData.Module?= =?UTF-8?q?s.Config).=E2=80=9C=20in=20Datei=20=E2=80=9EConfig\ConfigManage?= =?UTF-8?q?r.vb=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Config/ConfigManager.vb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Config/ConfigManager.vb b/Config/ConfigManager.vb index 086275d8..3d3251a3 100644 --- a/Config/ConfigManager.vb +++ b/Config/ConfigManager.vb @@ -1,15 +1,14 @@ Imports System.IO Imports System.Reflection Imports System.Xml.Serialization -Imports DigitalData.Modules.Logging -Imports DigitalData.Modules.Config.ConfigAttributes +Imports DigitalData.Modules.Config Public Class ConfigManager(Of T) Public Const USER_CONFIG_NAME As String = "UserConfig.xml" Public Const COMPUTER_CONFIG_NAME As String = "ComputerConfig.xml" Public Const APP_CONFIG_NAME As String = "AppConfig.xml" - Private ReadOnly _LogConfig As LogConfig + ' Private ReadOnly _LogConfig As LogConfig Private ReadOnly _Logger As Logger Private ReadOnly _File As FilesystemEx @@ -100,7 +99,7 @@ Public Class ConfigManager(Of T) ''' The path to check for a computer config file, eg. ProgramData (Usually Application.CommonAppDataPath) ''' The path to check for a third config file. This is useful when running the Application in an environment where AppData/ProgramData directories are not available ''' Override values from ComputerConfig with UserConfig - Public Sub New(LogConfig As LogConfig, UserConfigPath As String, ComputerConfigPath As String, Optional ApplicationStartupPath As String = "", Optional ForceUserConfig As Boolean = False) + ' Public Sub New(LogConfig As LogConfig, UserConfigPath As String, ComputerConfigPath As String, Optional ApplicationStartupPath As String = "", Optional ForceUserConfig As Boolean = False) _LogConfig = LogConfig _Logger = LogConfig.GetLogger() _File = New FilesystemEx(_LogConfig) @@ -136,7 +135,7 @@ Public Class ConfigManager(Of T) ''' ''' LogConfig instance ''' The path to check for a user config file, eg. AppData (Usually Application.UserAppDataPath or Application.LocalUserAppDataPath) - Public Sub New(LogConfig As LogConfig, ConfigPath As String) + ' Public Sub New(LogConfig As LogConfig, ConfigPath As String) MyClass.New(LogConfig, ConfigPath, String.Empty, String.Empty, ForceUserConfig:=True) End Sub