From 7b6163654cc3216cccfea5a9bdb8db96b67351ac Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Sat, 26 Sep 2020 16:59:14 +0200 Subject: [PATCH] Aggiunta messaggio richiesta stop thread --- Iob.Net/Program.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Iob.Net/Program.cs b/Iob.Net/Program.cs index 17e0f14d..b4d10ab1 100644 --- a/Iob.Net/Program.cs +++ b/Iob.Net/Program.cs @@ -7,11 +7,20 @@ using System.Threading.Tasks; using System.Windows.Forms; using static SteamWare.Logger.Logging; using static SteamWare.Logger.Constants; +using System.Threading; namespace Iob.Net { internal static class Program { + #region Public Fields + + public static readonly ManualResetEvent StopRequest = new ManualResetEvent(false); + + #endregion Public Fields + + + #region Public Methods public static void Main() @@ -103,6 +112,12 @@ namespace Iob.Net } #endif + // avvio i thread: lettura PLC, pubblicazione http su MP/IO, gestione task MP/IO, invio update UI + + // attendo chiusura + + // chiudo + #if false // Stop Threads ThreadsHandler.Close();