Feature/tech debt (#199)
* Added an icon for building the exe * Technical debt
This commit is contained in:
parent
d92e9e7602
commit
f694145cd9
26 changed files with 76 additions and 112 deletions
|
@ -4,6 +4,7 @@ using API.Data;
|
|||
using API.Entities;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Server.Kestrel.Core;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
@ -49,38 +50,12 @@ namespace API
|
|||
{
|
||||
webBuilder.UseKestrel((opts) =>
|
||||
{
|
||||
opts.ListenAnyIP(HttpPort);
|
||||
opts.ListenAnyIP(HttpPort, options =>
|
||||
{
|
||||
options.Protocols = HttpProtocols.Http1AndHttp2;
|
||||
});
|
||||
});
|
||||
webBuilder.UseStartup<Startup>();
|
||||
});
|
||||
|
||||
// private static void StartNewInstance()
|
||||
// {
|
||||
// //_logger.LogInformation("Starting new instance");
|
||||
//
|
||||
// var module = options.RestartPath;
|
||||
//
|
||||
// if (string.IsNullOrWhiteSpace(module))
|
||||
// {
|
||||
// module = Environment.GetCommandLineArgs()[0];
|
||||
// }
|
||||
//
|
||||
// // string commandLineArgsString;
|
||||
// // if (options.RestartArgs != null)
|
||||
// // {
|
||||
// // commandLineArgsString = options.RestartArgs ?? string.Empty;
|
||||
// // }
|
||||
// // else
|
||||
// // {
|
||||
// // commandLineArgsString = string.Join(
|
||||
// // ' ',
|
||||
// // Environment.GetCommandLineArgs().Skip(1).Select(NormalizeCommandLineArgument));
|
||||
// // }
|
||||
//
|
||||
// //_logger.LogInformation("Executable: {0}", module);
|
||||
// //_logger.LogInformation("Arguments: {0}", commandLineArgsString);
|
||||
//
|
||||
// Process.Start(module, Array.Empty<string>);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue