/// <summary> /// 结束所有范围 /// </summary> public static void EndAll() { while (CurrentScope != null) { CurrentScope.DoDispose(); } }