mirror of
https://github.com/aphrody-labs/NuGet.Client.git
synced 2026-10-15 13:59:49 +00:00
32 lines
786 B
C#
32 lines
786 B
C#
// 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.
|
|
|
|
using System.Net.Http;
|
|
using NuGet.Protocol.Core.Types;
|
|
|
|
namespace Test.Utility
|
|
{
|
|
public class TestHttpHandler : HttpHandlerResource
|
|
{
|
|
private HttpClientHandler _messageHandler;
|
|
|
|
public TestHttpHandler(HttpClientHandler messageHandler)
|
|
{
|
|
_messageHandler = messageHandler;
|
|
}
|
|
|
|
public override HttpClientHandler ClientHandler
|
|
{
|
|
get { return _messageHandler; }
|
|
}
|
|
|
|
public override HttpMessageHandler MessageHandler
|
|
{
|
|
get
|
|
{
|
|
return _messageHandler;
|
|
}
|
|
}
|
|
}
|
|
}
|