private static void Main(string[] args) { IFileHandler handler = InstantiateDefaultFileHandlerByCoolDI(); handler.Enable(); while (Console.ReadKey(true).Key != ConsoleKey.Escape) { } }