remove remaining .Result calls

This commit is contained in:
rafael-aero
2021-07-12 18:16:07 +02:00
parent f200013165
commit 8880e040f7
4 changed files with 164 additions and 219 deletions

View File

@@ -4,12 +4,13 @@ using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace ElectronNET.CLI
{
class Program
{
static void Main(string[] args)
static async Task Main(string[] args)
{
if (args.Length == 0)
{
@@ -56,7 +57,7 @@ namespace ElectronNET.CLI
if (command != null)
{
var success = command.ExecuteAsync().Result;
var success = await command.ExecuteAsync();
if (!success)
{
Environment.Exit(-1);