Skip to content

Commit 600bc1a

Browse files
Merge pull request #322 from kant2002/improve-testability
Change test application initialization procedure.
2 parents 4e8e771 + cafffde commit 600bc1a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ElectronNET.WebApp/Program.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@ public class Program
99
{
1010
public static void Main(string[] args)
1111
{
12-
BuildWebHost(args).Run();
12+
CreateWebHostBuilder(args).Build().Run();
1313
}
1414

15-
public static IWebHost BuildWebHost(string[] args)
15+
public static IWebHostBuilder CreateWebHostBuilder(string[] args)
1616
{
1717
return WebHost.CreateDefaultBuilder(args)
1818
.ConfigureLogging((hostingContext, logging) => { logging.AddConsole(); })
1919
.UseElectron(args)
20-
.UseStartup<Startup>()
21-
.Build();
20+
.UseStartup<Startup>();
2221
}
2322
}
2423
}

0 commit comments

Comments
 (0)