mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-19 01:47:08 +01:00
* Create WireMock.Net.MimePart project * . * REFACTOR * ILRepack * -- * ... * x * x * . * fix * public class MimePartMatcher * shared * min * . * <!--<DelaySign>true</DelaySign>--> * Update README.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
28 lines
475 B
C#
28 lines
475 B
C#
// Copyright © WireMock.Net
|
|
|
|
#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 |