diff --git a/ProjectPlugins/CodexClient/CodexAccess.cs b/ProjectPlugins/CodexClient/CodexAccess.cs index c7c3dc32..7f35d233 100644 --- a/ProjectPlugins/CodexClient/CodexAccess.cs +++ b/ProjectPlugins/CodexClient/CodexAccess.cs @@ -1,4 +1,5 @@ -using Logging; +using CodexOpenApi; +using Logging; using Newtonsoft.Json; using Utils; using WebUtils; @@ -218,22 +219,22 @@ namespace CodexClient processControl.DeleteDataDirFolder(); } - private T OnCodex(Func> action) + private T OnCodex(Func> action) { var result = httpFactory.CreateHttp(GetHttpId(), h => CheckContainerCrashed()).OnClient(client => CallCodex(client, action)); return result; } - private T OnCodex(Func> action, Retry retry) + private T OnCodex(Func> action, Retry retry) { var result = httpFactory.CreateHttp(GetHttpId(), h => CheckContainerCrashed()).OnClient(client => CallCodex(client, action), retry); return result; } - private T CallCodex(HttpClient client, Func> action) + private T CallCodex(HttpClient client, Func> action) { var address = GetAddress(); - var api = new openapiClient(client); + var api = new CodexApiClient(client); api.BaseUrl = $"{address.Host}:{address.Port}/api/codex/v1"; return CrashCheck(() => Time.Wait(action(api))); } diff --git a/ProjectPlugins/CodexClient/CodexClient.csproj b/ProjectPlugins/CodexClient/CodexClient.csproj index dc11b863..cc417a9e 100644 --- a/ProjectPlugins/CodexClient/CodexClient.csproj +++ b/ProjectPlugins/CodexClient/CodexClient.csproj @@ -11,11 +11,7 @@ - - NSwagCSharp - CodexOpenApi - - +