From 24caec411f6e301a38996838d192466a9a61cb10 Mon Sep 17 00:00:00 2001 From: Jan Korf Date: Mon, 13 Aug 2018 22:54:12 +0200 Subject: [PATCH] Made ping virtual so clients can override it --- CryptoExchange.Net/CryptoExchange.Net.csproj | 2 +- CryptoExchange.Net/ExchangeClient.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CryptoExchange.Net/CryptoExchange.Net.csproj b/CryptoExchange.Net/CryptoExchange.Net.csproj index 459c038..602b10f 100644 --- a/CryptoExchange.Net/CryptoExchange.Net.csproj +++ b/CryptoExchange.Net/CryptoExchange.Net.csproj @@ -7,7 +7,7 @@ CryptoExchange.Net JKorf - 0.0.38 + 0.0.39 false https://github.com/JKorf/CryptoExchange.Net https://github.com/JKorf/CryptoExchange.Net/blob/master/LICENSE diff --git a/CryptoExchange.Net/ExchangeClient.cs b/CryptoExchange.Net/ExchangeClient.cs index 0714e14..480d07b 100644 --- a/CryptoExchange.Net/ExchangeClient.cs +++ b/CryptoExchange.Net/ExchangeClient.cs @@ -94,13 +94,13 @@ namespace CryptoExchange.Net /// Ping to see if the server is reachable /// /// The roundtrip time of the ping request - public CallResult Ping() => PingAsync().Result; + public virtual CallResult Ping() => PingAsync().Result; /// /// Ping to see if the server is reachable /// /// The roundtrip time of the ping request - public async Task> PingAsync() + public virtual async Task> PingAsync() { var ping = new Ping(); var uri = new Uri(baseAddress);