//-----------------------------------------------------------------------
//
// Copyright (c) Andrew Arnott. All rights reserved.
//
//-----------------------------------------------------------------------
namespace DotNetOpenAuth {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
///
/// Provides the host application or tests with the ability to create standard message handlers or stubs.
///
public interface IHostFactories {
///
/// Initializes a new instance of a concrete derivation of
/// to be used for outbound HTTP traffic.
///
/// An instance of .
///
/// An instance of is recommended where available;
/// otherwise an instance of is recommended.
///
HttpMessageHandler CreateHttpMessageHandler();
///
/// Initializes a new instance of the class
/// to be used for outbound HTTP traffic.
///
///
/// The handler to pass to the constructor.
/// May be null to use the default that would be provided by .
///
/// An instance of .
HttpClient CreateHttpClient(HttpMessageHandler handler = null);
}
}