using System; using System.Windows.Forms; using Pingerino.Infrastructure; namespace Pingerino { internal static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Initialize dependency injection container ServiceContainer.Initialize(); try { Application.Run(new FormPinger()); } finally { // Clean up services on application exit ServiceContainer.Instance?.Dispose(); } } } }