.net - Cancellation of a long running task in C# -


i working on project have lots of separate components running , agenda cancel component process in between based on user input.

for example: have 6 windows service work , 1 windows service responsible distribution of work. once work send worker windows service there no control on it. worker windows service time consuming task, calling several function, interect database etc. want cancel task in between of working.

the traditional approch use cancelation no longer work here as... 1. not iterating loop can continuosly check cancel flag. 2. since component totally separate , once start working, new instance created of component , not able pass value component.

thanks in advance.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -