using System; using leak_test_project.Infrastructure; using leak_test_project.Utils; namespace leak_test_project.Services { /// /// DioConfig.ini 설정에 따라 적절한 IDioBoard 객체를 생성하는 팩토리 클래스. /// public static class DioBoardFactory { public static IDioBoard CreateBoard() { var config = DioConfigParser.LoadDefault(); // 실제 보드 연동 Console.WriteLine($"[DIO Factory] Creating RealDioBoard ({config.CompanyName} {config.BoardType})..."); var board = new RealDioBoard(); board.Initialize(); return board; } } }