mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-18 01:16:51 +01:00
* More nullable annotations * . * . * FIX * pact * . * p * xxx * ... * auth * array * ...
26 lines
445 B
C#
26 lines
445 B
C#
#if NETSTANDARD1_3
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace System.Net;
|
|
|
|
internal class WebProxy : IWebProxy
|
|
{
|
|
private readonly string _proxy;
|
|
public ICredentials? Credentials { get; set; }
|
|
|
|
public WebProxy(string proxy)
|
|
{
|
|
_proxy = proxy;
|
|
}
|
|
|
|
public Uri GetProxy(Uri destination)
|
|
{
|
|
return new Uri(_proxy);
|
|
}
|
|
|
|
public bool IsBypassed(Uri host)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
#endif |