public static async Task DoMain(object[] args) { var oMyClass = new MyClass(args); try { await oMyClass.InitializeAsync(); } catch (Exception ex) { var _logger = args[1] as ILogger; _logger.LogMessage(ex.ToString()); } }
public static async Task DoMain(object[] args) { var oMyClass = new MyClass(args); await oMyClass.InitializeAsync(); }