Aggiunta messaggio richiesta stop thread

This commit is contained in:
Samuele E. Locatelli
2020-09-26 16:59:14 +02:00
parent e302e8b852
commit 7b6163654c
+15
View File
@@ -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();