auto license fetching now and generator more solid

This commit is contained in:
2020-06-15 19:26:29 +00:00
parent 69030bd767
commit 59f4c6a9d2
7 changed files with 38 additions and 18 deletions

View File

@@ -305,7 +305,8 @@ namespace AyaNova
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
//
public void Configure(IApplicationBuilder app, Microsoft.AspNetCore.Hosting.IWebHostEnvironment env,
AyContext dbContext, IApiVersionDescriptionProvider provider, AyaNova.Api.ControllerHelpers.ApiServerState apiServerState, IServiceProvider serviceProvider)
AyContext dbContext, IApiVersionDescriptionProvider provider, AyaNova.Api.ControllerHelpers.ApiServerState apiServerState,
IServiceProvider serviceProvider)
{
_newLog.LogDebug("Configuring request pipeline...");
@@ -601,10 +602,14 @@ namespace AyaNova
_newLog.LogInformation($"License - [{AyaNova.Core.License.LicenseInfoLogFormat}]");
//Boot lock for generator
ServerGlobalOpsSettingsCache.BOOTING=false;
//Open up the server for visitors
_newLog.LogDebug("Setting server state open");
apiServerState.SetOpen();
//final startup log
_newLog.LogInformation("Boot complete - server open");