From 46c01827d86501d55fb924056d7b208ab6deb536 Mon Sep 17 00:00:00 2001 From: skx <610262374@qq.com> Date: Fri, 22 Jan 2021 16:54:28 +0800 Subject: [PATCH] Asynchronous thread optimization --- Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs b/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs index 6f5e92521..061f3d0e8 100644 --- a/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs +++ b/Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs @@ -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);