mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-07 16:06:15 +00:00
Made ping virtual so clients can override it
This commit is contained in:
parent
ad27458776
commit
24caec411f
@ -7,7 +7,7 @@
|
||||
<PropertyGroup>
|
||||
<PackageId>CryptoExchange.Net</PackageId>
|
||||
<Authors>JKorf</Authors>
|
||||
<PackageVersion>0.0.38</PackageVersion>
|
||||
<PackageVersion>0.0.39</PackageVersion>
|
||||
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
|
||||
<PackageProjectUrl>https://github.com/JKorf/CryptoExchange.Net</PackageProjectUrl>
|
||||
<PackageLicenseUrl>https://github.com/JKorf/CryptoExchange.Net/blob/master/LICENSE</PackageLicenseUrl>
|
||||
|
@ -94,13 +94,13 @@ namespace CryptoExchange.Net
|
||||
/// Ping to see if the server is reachable
|
||||
/// </summary>
|
||||
/// <returns>The roundtrip time of the ping request</returns>
|
||||
public CallResult<long> Ping() => PingAsync().Result;
|
||||
public virtual CallResult<long> Ping() => PingAsync().Result;
|
||||
|
||||
/// <summary>
|
||||
/// Ping to see if the server is reachable
|
||||
/// </summary>
|
||||
/// <returns>The roundtrip time of the ping request</returns>
|
||||
public async Task<CallResult<long>> PingAsync()
|
||||
public virtual async Task<CallResult<long>> PingAsync()
|
||||
{
|
||||
var ping = new Ping();
|
||||
var uri = new Uri(baseAddress);
|
||||
|
Loading…
x
Reference in New Issue
Block a user