From 2f6889880a2511ba6c510a20a4ab459079d196b1 Mon Sep 17 00:00:00 2001 From: Jkorf Date: Wed, 5 Mar 2025 16:11:09 +0100 Subject: [PATCH] Restore CryptoRestClient --- .../Clients/CryptoRestClient.cs | 27 +++++++++++++++++++ .../Interfaces/ICryptoRestClient.cs | 17 ++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 CryptoExchange.Net/Clients/CryptoRestClient.cs create mode 100644 CryptoExchange.Net/Interfaces/ICryptoRestClient.cs diff --git a/CryptoExchange.Net/Clients/CryptoRestClient.cs b/CryptoExchange.Net/Clients/CryptoRestClient.cs new file mode 100644 index 0000000..d4ee0bb --- /dev/null +++ b/CryptoExchange.Net/Clients/CryptoRestClient.cs @@ -0,0 +1,27 @@ +using CryptoExchange.Net.Interfaces; +using Microsoft.Extensions.DependencyInjection; +using System; +using System.Collections.Generic; +using System.Linq; + +namespace CryptoExchange.Net.Clients +{ + /// + public class CryptoRestClient : CryptoBaseClient, ICryptoRestClient + { + /// + /// ctor + /// + public CryptoRestClient() + { + } + + /// + /// ctor + /// + /// + public CryptoRestClient(IServiceProvider serviceProvider) : base(serviceProvider) + { + } + } +} \ No newline at end of file diff --git a/CryptoExchange.Net/Interfaces/ICryptoRestClient.cs b/CryptoExchange.Net/Interfaces/ICryptoRestClient.cs new file mode 100644 index 0000000..c3966eb --- /dev/null +++ b/CryptoExchange.Net/Interfaces/ICryptoRestClient.cs @@ -0,0 +1,17 @@ +using System; + +namespace CryptoExchange.Net.Interfaces +{ + /// + /// Client for accessing REST API's for different exchanges + /// + public interface ICryptoRestClient + { + /// + /// Try get + /// + /// + /// + T TryGet(Func createFunc); + } +} \ No newline at end of file