From dc1c90558e150f28edc67f413bd8cb544a32eedd Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 6 Mar 2019 13:00:23 +0100 Subject: [PATCH] typo --- TestClient/MainForm.cs | 71 ------------------------------------------ 1 file changed, 71 deletions(-) diff --git a/TestClient/MainForm.cs b/TestClient/MainForm.cs index a9ec8f9..630b95f 100644 --- a/TestClient/MainForm.cs +++ b/TestClient/MainForm.cs @@ -232,77 +232,6 @@ namespace TestClient }), ""); }); } -#if false - /// - /// Task x AUTH - /// - /// - private async Task doOAuthCycle() - { - StringBuilder sb = new StringBuilder(); - // fino a quanod NON รจ auth --> cicla... - while (!reqStatus.isHmiEnrolled && doAuthSemap) - { - await Task.Run(() => - { - synchronizationContext.Post(new SendOrPostCallback(o => - { - sb = new StringBuilder(); - sb.AppendLine("--------------------------------------------------"); - sb.AppendLine(string.Format("{0:HH.mm.ss.fff} | Try OAuth process", DateTime.Now)); - lblConsole.Text = sb.ToString(); - }), ""); - - userAuthData authData = MCC.tryAuthorize(); - // recupero nuova reqStatus... - reqStatus = MCC.reqStatusUpd; - - synchronizationContext.Post(new SendOrPostCallback(o => - { - // mostro i dati SPECIFICI x AUTH... - updateAuthData(authData); - // refresh... - sb = new StringBuilder(); - sb.AppendLine(">>>"); - sb.AppendLine(string.Format("{0:HH.mm.ss.fff} | END", DateTime.Now)); - sb.AppendLine("--------------------------------------------------"); - lblConsole.Text += sb.ToString(); - }), ""); - - // mi fermo... - Thread.Sleep(500); - }); - } - if (reqStatus.isHmiEnrolled) - { - // indico che ho concluso - sb = new StringBuilder(); - sb.AppendLine("--------------------------------------------------"); - sb.AppendLine(string.Format("{0:HH.mm.ss.fff} | Auth + enroll DONE", DateTime.Now)); - sb.AppendLine("--------------------------------------------------"); - - synchronizationContext.Post(new SendOrPostCallback(o => - { - lblConsole.Text = sb.ToString(); - refreshRequestStatus(); - }), ""); - } - else - { - // indico che ho concluso - sb = new StringBuilder(); - sb.AppendLine("--------------------------------------------------"); - sb.AppendLine(string.Format("{0:HH.mm.ss.fff} | FORCE RESET", DateTime.Now)); - sb.AppendLine("--------------------------------------------------"); - synchronizationContext.Post(new SendOrPostCallback(o => - { - lblConsole.Text = sb.ToString(); - }), ""); - resetAuthData(); - } - doAuthSemap = false; - } -#endif /// /// Recupero OrgCode ///