I think this could be problematic in a long running process as I think the cancellation token given to this function in always the same, so the register might be called multiple times on the same cancellation token. Should we unregister this callback at some point?
This should probably be done in another PR anyway.
This should probably be done in another PR anyway.
_Originally posted by @lemaitre-aneo in https://github.com/aneoconsulting/ArmoniK.Core/pull/333#discussion_r1184602299_