WIP estimate pdf
This commit is contained in:
parent
acf94220e7
commit
bc073c8b6a
13 changed files with 407 additions and 63 deletions
|
|
@ -12,6 +12,7 @@ namespace Yavsc
|
|||
{
|
||||
public static string UserFilesDirName { get; private set; }
|
||||
public static FileServerOptions UserFilesOptions { get; private set; }
|
||||
|
||||
public void ConfigureFileServerApp(IApplicationBuilder app,
|
||||
SiteSettings siteSettings, IHostingEnvironment env)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web.Optimization;
|
||||
|
|
@ -32,8 +33,11 @@ namespace Yavsc
|
|||
public partial class Startup
|
||||
{
|
||||
public static string ConnectionString { get; private set; }
|
||||
public static string UserBillsDirName { private set; get; }
|
||||
public static string Authority { get; private set; }
|
||||
public static string Audience { get; private set; }
|
||||
public static SiteSettings SiteSetup { get; private set; }
|
||||
|
||||
private static ILogger logger;
|
||||
public Startup(IHostingEnvironment env, IApplicationEnvironment appEnv)
|
||||
{
|
||||
|
|
@ -225,7 +229,11 @@ namespace Yavsc
|
|||
RoleManager<IdentityRole> roleManager,
|
||||
ILoggerFactory loggerFactory)
|
||||
{
|
||||
SiteSetup = siteSettings.Value;
|
||||
var tempdi = new DirectoryInfo(SiteSetup.TempDir);
|
||||
if (!tempdi.Exists) tempdi.Create();
|
||||
Startup.UserFilesDirName = siteSettings.Value.UserFiles.DirName;
|
||||
Startup.UserBillsDirName = siteSettings.Value.UserFiles.Bills;
|
||||
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
|
||||
loggerFactory.AddDebug();
|
||||
logger = loggerFactory.CreateLogger<Startup>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue