C# start long running task

Date: 2018-03-19
var task = Task.Factory.StartNew(() =>
            {
                RunMyTask();
            }, TaskCreationOptions.LongRunning);

 

10550cookie-checkC# start long running task