static int Main(string[] args) { var hostFactory = new HostFactory(); var consoleHost = hostFactory.CreateConsoleHost(); return(consoleHost.Run(args)); }