2017-10-06 05:04:56 +02:00
|
|
|
|
using ElectronNET.API;
|
|
|
|
|
|
using Microsoft.AspNetCore;
|
2017-10-02 20:40:28 +02:00
|
|
|
|
using Microsoft.AspNetCore.Hosting;
|
2019-10-03 22:30:58 +02:00
|
|
|
|
using Microsoft.Extensions.Logging;
|
2017-10-02 20:40:28 +02:00
|
|
|
|
|
|
|
|
|
|
namespace ElectronNET.WebApp
|
|
|
|
|
|
{
|
|
|
|
|
|
public class Program
|
|
|
|
|
|
{
|
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
|
{
|
2019-10-14 18:30:41 +03:00
|
|
|
|
CreateWebHostBuilder(args).Build().Run();
|
2017-10-03 04:17:14 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
2019-10-14 18:30:41 +03:00
|
|
|
|
public static IWebHostBuilder CreateWebHostBuilder(string[] args)
|
2017-10-06 00:37:14 +02:00
|
|
|
|
{
|
2017-10-06 05:06:11 +02:00
|
|
|
|
return WebHost.CreateDefaultBuilder(args)
|
2019-10-03 22:30:58 +02:00
|
|
|
|
.ConfigureLogging((hostingContext, logging) => { logging.AddConsole(); })
|
2017-10-06 05:06:11 +02:00
|
|
|
|
.UseElectron(args)
|
2019-10-14 18:30:41 +03:00
|
|
|
|
.UseStartup<Startup>();
|
2017-10-06 00:37:14 +02:00
|
|
|
|
}
|
2017-10-02 20:40:28 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|