mirror of
https://github.com/actions/runner.git
synced 2025-12-10 04:06:57 +00:00
* First pass at logic for GHES, not all correct * Need to mock out file downloading * Allowed for mocking of HTTP responses * Added test for builtin GHES action download * More tests * Don't retry on action 404 * Remove commented out code * Add a using statement back, because Windows * Make windows happy again * Another windows fix * Always delete the cache since it isn't fully implemented * Use RunnerService base class * Add examples, update URL path * Remove forceDotCom * Fix a bug * Remove a test that's no longer relevant * PR feedback * Add missing return * More trace info * Use the new agreed-upon format * Use the auth token since we're hitting GHES directly * Fixing tests on windows * Fixed one more test
19 lines
557 B
C#
19 lines
557 B
C#
using System.Net.Http;
|
|
using GitHub.Runner.Sdk;
|
|
|
|
namespace GitHub.Runner.Common
|
|
{
|
|
[ServiceLocator(Default = typeof(HttpClientHandlerFactory))]
|
|
public interface IHttpClientHandlerFactory : IRunnerService
|
|
{
|
|
HttpClientHandler CreateClientHandler(RunnerWebProxy webProxy);
|
|
}
|
|
|
|
public class HttpClientHandlerFactory : RunnerService, IHttpClientHandlerFactory
|
|
{
|
|
public HttpClientHandler CreateClientHandler(RunnerWebProxy webProxy)
|
|
{
|
|
return new HttpClientHandler() { Proxy = webProxy };
|
|
}
|
|
}
|
|
} |