The requested page is not available for the requested platform. You are viewing the content for Default platform.

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(); });