mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-08 00:16:27 +00:00
29 lines
917 B
C#
29 lines
917 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="isTracingEnabled">Should generate unique id for requests</param>
|
|
void Configure(TimeSpan requestTimeout, ApiProxy? proxy, bool isTracingEnabled=false);
|
|
}
|
|
}
|