|
|
@ -1,10 +1,8 @@
|
|
|
|
using Infrastructure.Extensions;
|
|
|
|
using Microsoft.AspNetCore.Builder;
|
|
|
|
using Microsoft.AspNetCore.Builder;
|
|
|
|
|
|
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace IoTDameon
|
|
|
|
namespace IoTDameon
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -44,7 +42,7 @@ namespace IoTDameon
|
|
|
|
app.UseExceptionHandler("/Error");
|
|
|
|
app.UseExceptionHandler("/Error");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
string basePath = this.Configuration.GetAppSetting("BasePath");
|
|
|
|
string basePath = this.Configuration.GetSection("AppSettings").GetValue<string>("BasePath");
|
|
|
|
if (!string.IsNullOrEmpty(basePath))
|
|
|
|
if (!string.IsNullOrEmpty(basePath))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
app.UsePathBase(basePath);
|
|
|
|
app.UsePathBase(basePath);
|
|
|
@ -73,4 +71,4 @@ namespace IoTDameon
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|