Given the following code:
string injectedString = \"Read string out of HttpContext\"; Task.Factory.StartNew(() => { MyClass myClass = new MyClass();
You should probably use the Task.Factory.StartNew(Action action, object state) overload to pass state into your new task.
Task.Factory.StartNew(Action action, object state)
Task.Factory.StartNew((object myState) => { var i = (int)myState; //Do calculations... var x = i + 10; }, 10);