Hi Gyoreg,
Unfortunately I never managed to get this working as I hoped. I had the same experience as you with the nasty approach as well. In the end we had to turn the responsibility around and have jobs occasionally ask the server if they should still be running or not. It's not ideal and not as clean or responsive as I hoped but it was the best we could manage with CancelAsync() not really working.
I haven't actually looked at this for quite some time, but I've just noticed that there has been a new release since my OP. I'm guessing you're using the newest version and still seeing the problem? I guess it's probably worth raising as an issue, but I don't know how actively this project is maintained anymore...
Sorry I can't be any more help!
Mike
Unfortunately I never managed to get this working as I hoped. I had the same experience as you with the nasty approach as well. In the end we had to turn the responsibility around and have jobs occasionally ask the server if they should still be running or not. It's not ideal and not as clean or responsive as I hoped but it was the best we could manage with CancelAsync() not really working.
I haven't actually looked at this for quite some time, but I've just noticed that there has been a new release since my OP. I'm guessing you're using the newest version and still seeing the problem? I guess it's probably worth raising as an issue, but I don't know how actively this project is maintained anymore...
Sorry I can't be any more help!
Mike