I have a concurrent program to request crm, and then I found that the DisableCrossThreadSafeties property setting of CrmServiceClient supports concurrency, and found that setting it to true increases the concurrency efficiency by 50%. Is there any risk to crm or thread safety issues?
CrmServiceClient svc = new CrmServiceClient(ConfigurationManager.AppSettings["ConnStr"]);
svc.DisableCrossThreadSafeties = true;
Set to false: the total time-consuming program runs to completion, time-consuming: 164930 list count: 320 average each millisecond: 515
Set to true Total time-consuming program to run to completion, time-consuming: 79941 list count: 320 average each millisecond: 249