This commit is contained in:
Mike Phares 2022-03-29 12:43:41 -07:00
parent e24b488457
commit bd1dee2ccf

View File

@ -22,6 +22,7 @@ public class Program
Args = args,
ContentRootPath = Path.GetDirectoryName(assembly.Location)
});
_ = webApplicationBuilder.Host.UseWindowsService();
AppSettings appSettings = Models.Stateless.AppSettings.Get(webApplicationBuilder.Configuration);
if (string.IsNullOrEmpty(appSettings.WorkingDirectoryName))
throw new Exception("Working directory name must have a value!");