I'm porting a project to .NET Core and have some logic with the method. Do you know .NET Core supports Abort()
method in Thread class?
Can't find Abort method in Thread
Asked Answered
Does this answer your question? .NET Core equivalent to Thread.Abort –
Saleswoman
Thread.Abort has been removed in .NET Core.
- Move Thread.Abort under FEATURE_LEGACYSURFACE https://github.com/dotnet/coreclr/pull/2342
- Never call Thread.Abort https://github.com/aspnet/KestrelHttpServer/pull/726
- for tests purpose the custom Abort Ext method is used
As far as I have understood so far it is now recommended to use CancellationToken. Please read more about how to use this here:
https://msdn.microsoft.com/en-us/library/dd997364(v=vs.110).aspx
© 2022 - 2024 — McMap. All rights reserved.