From 8e7cf287f55d9c051a7cbb06e494636641d1afd5 Mon Sep 17 00:00:00 2001 From: DucDangAnh Date: Fri, 19 Jun 2020 10:29:12 +0700 Subject: [PATCH] Util - Refactor Method GetCurrentMethodName --- AIParkingApplication/Util.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/AIParkingApplication/Util.cs b/AIParkingApplication/Util.cs index 67815db..81fb8f4 100644 --- a/AIParkingApplication/Util.cs +++ b/AIParkingApplication/Util.cs @@ -46,8 +46,8 @@ namespace AIParkingApplication public static string GetCurrentMethodName() { var strackTrace = new StackTrace(); - var stackFrame = strackTrace.GetFrame(1); - return stackFrame.GetMethod().Name; + var sf = strackTrace.GetFrame(1); + return sf.GetMethod().Name; } public static async Task SendEngineRequestAsync(Mat plateImage, PlateType plateType) @@ -104,6 +104,5 @@ namespace AIParkingApplication public const string HTTP_POST_METHOD = "POST"; public const string HTTP_POST_CONTENTTYPE = "application/json"; - } }