Cancel request if taking to long to process
<p>Hello is this possible in c#:</p>

<p>If I have a loop say:<br>
<code>int x =0;
for (int i = 0; i &lt; 1000000; i++)
    {
        x++;
    }</code></p>

<p>And it takes more than 1 second to complete, is it possible to kill the code and move on?</p>
