I'm always wary about just launching tasks like this, threadAbort exceptions
are hard to track down.
Wouldn't doing this be better?
Task t;
Try{
t = new Task......
Redirection
} finally { await task }
Not sure if that would complete before or after the redirect though.
A better solution would be create a log4net a sync database provider.
Sent from my iPhone
On 02 Aug 2015, at 00:22, Greg Keogh <[email protected]> wrote:
>> Task(()=> { ... do stuff }).Start()
>>
>
> From Framework 4.5 you have the slightly neater looking:
>
> Task.Run(() => { ...DoStuff... });
>
> GK