Welcome to mirror list, hosted at ThFree Co, Russian Federation.

TestProxy.cs « MonoDevelop.PackageManagement.Tests.Helpers « MonoDevelop.PackageManagement.Tests « MonoDevelop.PackageManagement « addins « src « main - github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9e0e626fdeff78d5dfaa30d7efdb5825fde151b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
//
// From: https://github.com/NuGet/NuGet.Client
// test/NuGet.Core.Tests/NuGet.Protocol.Tests/HttpSource/TestProxy.cs

using System;
using System.Net;

namespace MonoDevelop.PackageManagement.Tests
{
	internal class TestProxy : IWebProxy
	{
		readonly Uri proxyAddress;

		public TestProxy (Uri proxyAddress)
		{
			this.proxyAddress = proxyAddress;
		}

		public ICredentials Credentials { get; set; }

		public Uri GetProxy (Uri destination) => proxyAddress;

		public bool IsBypassed (Uri host) => false;
	}
}