There are other solutions to this, like running ReadAll in a Thread or Task and aborting that. I've also looked at the cancellation token and using that, however it's not being used effectively in ReadAll and I don't think there is simple solution as AnonymousPipeLoggerServer doesn't support cooperative cancellation as far as I can see.
There may be a memory leak here with the the two events being subscribed to, not sure if we want to try and engineer a better solution.
Fixes #271
There are other solutions to this, like running
ReadAll
in aThread
orTask
and aborting that. I've also looked at the cancellation token and using that, however it's not being used effectively inReadAll
and I don't think there is simple solution asAnonymousPipeLoggerServer
doesn't support cooperative cancellation as far as I can see.There may be a memory leak here with the the two events being subscribed to, not sure if we want to try and engineer a better solution.