CRR0041 - Use Task.Run instead of Task.Factory.StartNew

This analyzer detects Task.Factory.StartNew thread execution statements that can be unsafe.

Task.Factory.StartNew(() => { DemoMethodSync(); });

To fix the issue, use the Task.Run method instead of Task.Factory.StartNew.

Task.Run(() => { DemoMethodSync(); });