mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-08-11 10:39:42 +00:00
implement auto port support for socket bridge communication
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Microsoft.AspNetCore;
|
||||
using ElectronNET.API;
|
||||
using Microsoft.AspNetCore;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
@@ -22,7 +23,7 @@ namespace ElectronNET.WebApp
|
||||
//{
|
||||
//Console.WriteLine("Test Switch for Electron detection: " + args[0]);
|
||||
return WebHost.CreateDefaultBuilder(args)
|
||||
.UseContentRoot(AppDomain.CurrentDomain.BaseDirectory)
|
||||
.UseElectron(args)
|
||||
.UseStartup<Startup>()
|
||||
.Build();
|
||||
//}
|
||||
|
||||
@@ -10,13 +10,14 @@
|
||||
"profiles": {
|
||||
"IIS Express": {
|
||||
"commandName": "IISExpress",
|
||||
"launchBrowser": true,
|
||||
"commandLineArgs": "/electronPort=3000",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
},
|
||||
"ElectronNET.WebApp": {
|
||||
"commandName": "Project",
|
||||
"commandLineArgs": "/electronPort=3000",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
@@ -24,4 +25,4 @@
|
||||
"applicationUrl": "http://localhost:50395/"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user