mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-08 16:36:15 +00:00
Updated version
This commit is contained in:
parent
379ded6832
commit
105547d6b1
@ -6,16 +6,16 @@
|
||||
<PackageId>CryptoExchange.Net</PackageId>
|
||||
<Authors>JKorf</Authors>
|
||||
<Description>A base package for implementing cryptocurrency exchange API's</Description>
|
||||
<PackageVersion>5.0.0-beta6</PackageVersion>
|
||||
<PackageVersion>5.0.0-beta7</PackageVersion>
|
||||
<AssemblyVersion>5.0.0</AssemblyVersion>
|
||||
<FileVersion>5.0.0-beta6</FileVersion>
|
||||
<FileVersion>5.0.0-beta7</FileVersion>
|
||||
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<RepositoryUrl>https://github.com/JKorf/CryptoExchange.Net.git</RepositoryUrl>
|
||||
<PackageProjectUrl>https://github.com/JKorf/CryptoExchange.Net</PackageProjectUrl>
|
||||
<NeutralLanguage>en</NeutralLanguage>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<PackageReleaseNotes>5.0.0-beta6 - Fix for deserialization of DateTime string "0" to a non-nullable DateTime property in .net framework</PackageReleaseNotes>
|
||||
<PackageReleaseNotes>5.0.0-beta7 - Added CancellationToken support on Common client interfaces, Added CancellationToken support on SymbolOrderBook, Improved SymbolOrderBook Start/Stop robustness</PackageReleaseNotes>
|
||||
<Nullable>enable</Nullable>
|
||||
<LangVersion>9.0</LangVersion>
|
||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
|
@ -26,7 +26,7 @@ namespace CryptoExchange.Net.OrderBook
|
||||
|
||||
private bool _stopProcessing;
|
||||
private Task? _processTask;
|
||||
private CancellationTokenSource _cts;
|
||||
private CancellationTokenSource? _cts;
|
||||
|
||||
private readonly AsyncResetEvent _queueEvent;
|
||||
private readonly ConcurrentQueue<object> _processQueue;
|
||||
@ -281,7 +281,7 @@ namespace CryptoExchange.Net.OrderBook
|
||||
{
|
||||
log.Write(LogLevel.Debug, $"{Id} order book {Symbol} stopping");
|
||||
Status = OrderBookStatus.Disconnected;
|
||||
_cts.Cancel();
|
||||
_cts?.Cancel();
|
||||
_queueEvent.Set();
|
||||
if (_processTask != null)
|
||||
await _processTask.ConfigureAwait(false);
|
||||
@ -564,7 +564,7 @@ namespace CryptoExchange.Net.OrderBook
|
||||
if (Status != OrderBookStatus.Syncing)
|
||||
return;
|
||||
|
||||
var resyncResult = await DoResyncAsync(_cts.Token).ConfigureAwait(false);
|
||||
var resyncResult = await DoResyncAsync(_cts!.Token).ConfigureAwait(false);
|
||||
success = resyncResult;
|
||||
}
|
||||
|
||||
|
@ -18,6 +18,11 @@ I develop and maintain this package on my own for free in my spare time. Donatio
|
||||
Alternatively, sponsor me on Github using [Github Sponsors](https://github.com/sponsors/JKorf)
|
||||
|
||||
## Release notes
|
||||
* Version 5.0.0-beta7 - 05 Feb 2022
|
||||
* Added CancellationToken support on Common client interfaces
|
||||
* Added CancellationToken support on SymbolOrderBook
|
||||
* Improved SymbolOrderBook Start/Stop robustness
|
||||
|
||||
* Version 5.0.0-beta6 - 02 Feb 2022
|
||||
* Fix for deserialization of DateTime string "0" to a non-nullable DateTime property in .net framework
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user