Asynchronous thread optimization

This commit is contained in:
skx 2021-01-22 16:54:28 +08:00
parent 634867d495
commit 46c01827d8

View File

@ -64,6 +64,11 @@ namespace SqlSugar
{
return false;
}
var name= method.Name;
if (name.Contains("OutputAsyncCausalityEvents"))
{
return true;
}
Type attType = typeof(AsyncStateMachineAttribute);
var attrib = (AsyncStateMachineAttribute)method.GetCustomAttribute(attType);
return (attrib != null);