static async Task Main(string[] args) { Console.WriteLine("Ensure that you are not running in a VPN or that appropriate ports are open to access Azure Resources."); ConfigurationResults <MyApplication> _configuredApplication = HostBuilderHelper.CreateApp <MyApplication>(args, ConfigureLocalServices); await _configuredApplication.myService.Run(); }
static async Task Main(string[] args) { // Configure the application. Set up IOC container with services required at runtime. configuredApplication = ConsoleHostBuilderHelper.CreateApp <MyApplication>(args, ConfigureLocalServices); await configuredApplication.myService.Run(); }
static async Task Main(string[] args) { configuredApplication = ConsoleHostBuilderHelper.CreateApp <MyApplication>(args); await configuredApplication.myService.Run(); }