mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-08 16:36:15 +00:00
29 lines
916 B
C#
29 lines
916 B
C#
using CryptoExchange.Net.Objects;
|
|
using System;
|
|
using System.Net.Http;
|
|
|
|
namespace CryptoExchange.Net.Interfaces
|
|
{
|
|
/// <summary>
|
|
/// Request factory interface
|
|
/// </summary>
|
|
public interface IRequestFactory
|
|
{
|
|
/// <summary>
|
|
/// Create a request for an uri
|
|
/// </summary>
|
|
/// <param name="method"></param>
|
|
/// <param name="uri"></param>
|
|
/// <returns></returns>
|
|
IRequest Create(HttpMethod method, string uri);
|
|
|
|
/// <summary>
|
|
/// Configure the requests created by this factory
|
|
/// </summary>
|
|
/// <param name="requestTimeout">Request timeout to use</param>
|
|
/// <param name="proxy">Proxy settings to use</param>
|
|
/// <param name="httpClient">Optional shared http client instance</param>
|
|
void Configure(TimeSpan requestTimeout, ApiProxy? proxy, HttpClient? httpClient=null);
|
|
}
|
|
}
|