|
|
@ -18,7 +18,9 @@ using Volo.Abp.AspNetCore.Mvc.Client;
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.Localization;
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.Localization;
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI;
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI;
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap;
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap;
|
|
|
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic;
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic;
|
|
|
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Bundling;
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared;
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared;
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Toolbars;
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Toolbars;
|
|
|
|
using Volo.Abp.AspNetCore.Serilog;
|
|
|
|
using Volo.Abp.AspNetCore.Serilog;
|
|
|
@ -76,6 +78,7 @@ namespace MyCompanyName.MyProjectName.Web
|
|
|
|
var hostingEnvironment = context.Services.GetHostingEnvironment();
|
|
|
|
var hostingEnvironment = context.Services.GetHostingEnvironment();
|
|
|
|
var configuration = context.Services.GetConfiguration();
|
|
|
|
var configuration = context.Services.GetConfiguration();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ConfigureBundles();
|
|
|
|
ConfigureCache(configuration);
|
|
|
|
ConfigureCache(configuration);
|
|
|
|
ConfigureRedis(context, configuration, hostingEnvironment);
|
|
|
|
ConfigureRedis(context, configuration, hostingEnvironment);
|
|
|
|
ConfigureUrls(configuration);
|
|
|
|
ConfigureUrls(configuration);
|
|
|
@ -87,6 +90,20 @@ namespace MyCompanyName.MyProjectName.Web
|
|
|
|
ConfigureSwaggerServices(context.Services);
|
|
|
|
ConfigureSwaggerServices(context.Services);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void ConfigureBundles()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Configure<AbpBundlingOptions>(options =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
options.StyleBundles.Configure(
|
|
|
|
|
|
|
|
BasicThemeBundles.Styles.Global,
|
|
|
|
|
|
|
|
bundle =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
bundle.AddFiles("/global-styles.css");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void ConfigureCache(IConfiguration configuration)
|
|
|
|
private void ConfigureCache(IConfiguration configuration)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Configure<AbpDistributedCacheOptions>(options =>
|
|
|
|
Configure<AbpDistributedCacheOptions>(options =>
|
|
|
|