From 250a718a601590bc489d0df51f725c63122be7b2 Mon Sep 17 00:00:00 2001 From: Developer01 Date: Tue, 30 Dec 2025 07:49:32 +0100 Subject: [PATCH] =?UTF-8?q?*=20=E2=80=9ELinie=2027:=20ConfigManager=20type?= =?UTF-8?q?=20does=20not=20exist=20in=20the=20project=20or=20dependencies.?= =?UTF-8?q?=20Replaced=20its=20usage=20with=20manual=20loading=20and=20des?= =?UTF-8?q?erialization=20of=20GraphQLConfig=20from=20the=20file=20path=20?= =?UTF-8?q?provided.=20Linie=2029:=20Replaced=20oConfigManager.Config=20wi?= =?UTF-8?q?th=20oConfig,=20which=20is=20the=20manually=20loaded=20configur?= =?UTF-8?q?ation=20object.=20Linie=2032:=20Replaced=20oConfigManager.Confi?= =?UTF-8?q?g.BaseUrl=20with=20oConfig.BaseUrl=20to=20match=20the=20new=20c?= =?UTF-8?q?onfig=20loading=20logic.=E2=80=9C=20in=20Datei=20=E2=80=9EJobs\?= =?UTF-8?q?GraphQL\GraphQLJob.vb=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jobs/GraphQL/GraphQLJob.vb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Jobs/GraphQL/GraphQLJob.vb b/Jobs/GraphQL/GraphQLJob.vb index f9666725..be5abc56 100644 --- a/Jobs/GraphQL/GraphQLJob.vb +++ b/Jobs/GraphQL/GraphQLJob.vb @@ -24,12 +24,20 @@ Public Class GraphQLJob Public Sub Start(Args As GraphQLArgs) Implements IJob(Of GraphQLArgs).Start Try Dim oConfigPath As String = Args.QueryConfigPath - Dim oConfigManager As New ConfigManager(Of GraphQLConfig)(_LogConfig, oConfigPath) + ' ConfigManager is missing, so we manually load the config + Dim oConfig As GraphQLConfig = Nothing + If File.Exists(oConfigPath) Then + ' Simple deserialization from JSON, assuming config is stored as JSON + Dim json As String = File.ReadAllText(oConfigPath) + oConfig = System.Text.Json.JsonSerializer.Deserialize(Of GraphQLConfig)(json) + Else + Throw New FileNotFoundException($"Config file not found: {oConfigPath}") + End If - With oConfigManager.Config + With oConfig _GraphQL = New GraphQLInterface(_LogConfig, .BaseUrl, .Email, .Password, .CertificateFingerprint) End With - _Logger.Info($"baseUrl is: {oConfigManager.Config.BaseUrl}") + _Logger.Info($"baseUrl is: {oConfig.BaseUrl}") _Model = New GraphQLModel(_LogConfig, _MSSQL) _Writer = New GraphQLWriter(_LogConfig, _MSSQL)