Skip to content

C#: Use the feed manager in the NugetExeWrapper.#22033

Draft
michaelnebel wants to merge 8 commits into
github:mainfrom
michaelnebel:csharp/usefeedmanager
Draft

C#: Use the feed manager in the NugetExeWrapper.#22033
michaelnebel wants to merge 8 commits into
github:mainfrom
michaelnebel:csharp/usefeedmanager

Conversation

@michaelnebel

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added the C# label Jun 22, 2026
Comment on lines +49 to +52
catch (Exception exc)
{
logger.LogWarning($"Failed to get directory of '{path}': {exc}");
}
Comment on lines +197 to +210
using HttpClient client = new(httpClientHandler);

isTimeout = false;

for (var i = 0; i < tryCount; i++)
{
using var cts = new CancellationTokenSource();
cts.CancelAfter(timeoutMilliSeconds);
try
{
logger.LogInfo($"Attempt {i + 1}/{tryCount} to reach NuGet feed '{feed}'.");
using var response = ExecuteGetRequest(feed, client, cts.Token).GetAwaiter().GetResult();
response.EnsureSuccessStatusCode();
logger.LogInfo($"Querying NuGet feed '{feed}' succeeded.");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants