Fixes PluginTools interface

This commit is contained in:
ThatBen 2025-07-09 14:48:51 +02:00
parent f6e272d2c5
commit ade1d9943d
No known key found for this signature in database
GPG Key ID: 62C543548433D43E
3 changed files with 3 additions and 4 deletions

View File

@ -7,7 +7,6 @@ namespace Core
{
public interface IPluginTools : IWorkflowTool, ILogTool, IHttpFactory, IFileTool
{
IWebCallTimeSet WebCallTimeSet { get; }
IK8sTimeSet K8STimeSet { get; }
/// <summary>

View File

@ -8,7 +8,7 @@ namespace WebUtils
IHttp CreateHttp(string id, Action<HttpClient> 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<HttpClient> onClientCreated)
{

View File

@ -215,7 +215,7 @@ namespace CodexClient
private T OnCodexNoRetry<T>(Func<CodexApiClient, Task<T>> 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),