1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-08 00:16:27 +00:00

Made ping virtual so clients can override it

This commit is contained in:
Jan Korf 2018-08-13 22:54:12 +02:00
parent ad27458776
commit 24caec411f
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
<PropertyGroup> <PropertyGroup>
<PackageId>CryptoExchange.Net</PackageId> <PackageId>CryptoExchange.Net</PackageId>
<Authors>JKorf</Authors> <Authors>JKorf</Authors>
<PackageVersion>0.0.38</PackageVersion> <PackageVersion>0.0.39</PackageVersion>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance> <PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageProjectUrl>https://github.com/JKorf/CryptoExchange.Net</PackageProjectUrl> <PackageProjectUrl>https://github.com/JKorf/CryptoExchange.Net</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/JKorf/CryptoExchange.Net/blob/master/LICENSE</PackageLicenseUrl> <PackageLicenseUrl>https://github.com/JKorf/CryptoExchange.Net/blob/master/LICENSE</PackageLicenseUrl>

View File

@ -94,13 +94,13 @@ namespace CryptoExchange.Net
/// Ping to see if the server is reachable /// Ping to see if the server is reachable
/// </summary> /// </summary>
/// <returns>The roundtrip time of the ping request</returns> /// <returns>The roundtrip time of the ping request</returns>
public CallResult<long> Ping() => PingAsync().Result; public virtual CallResult<long> Ping() => PingAsync().Result;
/// <summary> /// <summary>
/// Ping to see if the server is reachable /// Ping to see if the server is reachable
/// </summary> /// </summary>
/// <returns>The roundtrip time of the ping request</returns> /// <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 ping = new Ping();
var uri = new Uri(baseAddress); var uri = new Uri(baseAddress);