You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var webSocket = new MarketDataWebSocket(XXXX); // new UserDataWebSocket(XXXX)
After the program has been running for a while.
When I disconnect or dispose the websocket like this: webSocket.DisconnectAsync(CancellationToken.None);
or webSocket.Dispose();
the Error "The CancellationTokenSource has been disposed" will be happen sometimes.
I try run like this: webSocket.DisconnectAsync(cancellationToken); // this token is called in my context
the error will be happen as well sometimes.
Reproduction steps
var webSocket = new MarketDataWebSocket(XXXX); // new UserDataWebSocket(XXXX)
After the program has been running for a while.
When I disconnect or dispose the websocket like this:
webSocket.DisconnectAsync(CancellationToken.None);
or
webSocket.Dispose();
the Error "The CancellationTokenSource has been disposed" will be happen sometimes.
I try run like this:
webSocket.DisconnectAsync(cancellationToken); // this token is called in my context
the error will be happen as well sometimes.
Expected behavior
No errors
Actual Behavior
The CancellationTokenSource has been disposed.
.NET version
.NET Framework 8.0.x
Operating system
Windows
Environment
No response
dotnet --info
.NET SDK:
Version: 9.0.101
Commit: eedb237549
Workload version: 9.0.100-manifests.4a280210
MSBuild version: 17.12.12+1cce77968
OS Name: Windows
OS Version: 10.0.26100
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.101\
Host:
Version: 9.0.0
Architecture: x64
Commit: 9d5a6a9aa4
.NET SDKs installed:
9.0.101 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
Not set
global.json file:
Not found
The text was updated successfully, but these errors were encountered: