hopefully fixes a Bug with CancellationToken.Register

I now wrapped the function I want to run on Cancellation into an Action-object 
On my local machine everything compiles and the test all turns green (ok-there is one "yellow" - not mine though)