From ade1d9943d78d835129ffb209a086dc8c3e2d861 Mon Sep 17 00:00:00 2001 From: ThatBen Date: Wed, 9 Jul 2025 14:48:51 +0200 Subject: [PATCH] Fixes PluginTools interface --- Framework/Core/PluginTools.cs | 1 - Framework/WebUtils/HttpFactory.cs | 4 ++-- ProjectPlugins/CodexClient/CodexAccess.cs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Framework/Core/PluginTools.cs b/Framework/Core/PluginTools.cs index e6eb18a6..94b2dd00 100644 --- a/Framework/Core/PluginTools.cs +++ b/Framework/Core/PluginTools.cs @@ -7,7 +7,6 @@ namespace Core { public interface IPluginTools : IWorkflowTool, ILogTool, IHttpFactory, IFileTool { - IWebCallTimeSet WebCallTimeSet { get; } IK8sTimeSet K8STimeSet { get; } /// diff --git a/Framework/WebUtils/HttpFactory.cs b/Framework/WebUtils/HttpFactory.cs index 41a0615e..ac931078 100644 --- a/Framework/WebUtils/HttpFactory.cs +++ b/Framework/WebUtils/HttpFactory.cs @@ -8,7 +8,7 @@ namespace WebUtils IHttp CreateHttp(string id, Action onClientCreated, IWebCallTimeSet timeSet); IHttp CreateHttp(string id); - IWebCallTimeSet TimeSet { get; } + IWebCallTimeSet WebCallTimeSet { get; } } public class HttpFactory : IHttpFactory @@ -39,7 +39,7 @@ namespace WebUtils factoryOnClientCreated = onClientCreated; } - public IWebCallTimeSet TimeSet => timeSet; + public IWebCallTimeSet WebCallTimeSet => timeSet; public IHttp CreateHttp(string id, Action onClientCreated) { diff --git a/ProjectPlugins/CodexClient/CodexAccess.cs b/ProjectPlugins/CodexClient/CodexAccess.cs index 8832955f..3dc1a213 100644 --- a/ProjectPlugins/CodexClient/CodexAccess.cs +++ b/ProjectPlugins/CodexClient/CodexAccess.cs @@ -215,7 +215,7 @@ namespace CodexClient private T OnCodexNoRetry(Func> action) { - var timeSet = httpFactory.TimeSet; + var timeSet = httpFactory.WebCallTimeSet; var noRetry = new Retry(nameof(OnCodexNoRetry), maxTimeout: TimeSpan.FromSeconds(1.0), sleepAfterFail: TimeSpan.FromSeconds(2.0),