Server mode for Gui&Console
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
<ProjectReference Include="..\..\..\AppCommon\FileTime.App.FrequencyNavigation\FileTime.App.FrequencyNavigation.csproj" />
|
||||
<ProjectReference Include="..\..\..\AppCommon\FileTime.App.Search\FileTime.App.Search.csproj" />
|
||||
<ProjectReference Include="..\..\..\Server\FileTime.Server.Extensions.DependencyInjection\FileTime.Server.Extensions.DependencyInjection.csproj" />
|
||||
<ProjectReference Include="..\..\..\Server\FileTime.Server\FileTime.Server.csproj" />
|
||||
<ProjectReference Include="..\..\..\Tools\FileTime.Tools.Compression\FileTime.Tools.Compression.csproj" />
|
||||
<ProjectReference Include="..\FileTime.GuiApp.CustomImpl\FileTime.GuiApp.CustomImpl.csproj" />
|
||||
<ProjectReference Include="..\FileTime.GuiApp.Font\FileTime.GuiApp.Font.csproj" />
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.ExceptionServices;
|
||||
using System.Threading.Tasks;
|
||||
@@ -56,6 +57,12 @@ public static class Program
|
||||
[STAThread]
|
||||
public static async Task Main(string[] args)
|
||||
{
|
||||
if(args.Length > 0 && args[0] == "--server")
|
||||
{
|
||||
Server.Program.Main(args.Skip(1).ToArray());
|
||||
return;
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
(AppDataRoot, EnvironmentName) = Init.InitDevelopment();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user