From 8f5ee8b373d2fa1a04b3a585be84fd00a191fd26 Mon Sep 17 00:00:00 2001 From: Argo-MacBookPro Date: Tue, 23 Oct 2018 20:54:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E4=BB=A3=E7=A0=81=EF=BC=9A?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E6=9C=80=E6=96=B0=E7=9A=84Longbow=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E8=B0=83=E6=95=B4=E5=B7=A5=E7=A8=8BSetup=E7=B1=BB?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=B3=A8=E5=85=A5=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Startup.cs | 4 ++-- Bootstrap.Client/Startup.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Bootstrap.Admin/Startup.cs b/Bootstrap.Admin/Startup.cs index 0dba8b4f..0ee13690 100644 --- a/Bootstrap.Admin/Startup.cs +++ b/Bootstrap.Admin/Startup.cs @@ -44,8 +44,8 @@ namespace Bootstrap.Admin }); services.AddCors(); services.AddLogging(builder => builder.AddFileLogger().AddDBLogger(ExceptionsHelper.Log)); - services.AddConfigurationManager(); - services.AddCacheManager(); + services.AddConfigurationManager(Configuration); + services.AddCacheManager(Configuration); services.AddDbAdapter(() => { CacheManager.Clear(); CacheManager.CorsClear(new List() { "*" }); }); var dataProtectionBuilder = services.AddDataProtection(op => op.ApplicationDiscriminator = Configuration["ApplicationDiscriminator"]) .SetApplicationName(Configuration["ApplicationName"]) diff --git a/Bootstrap.Client/Startup.cs b/Bootstrap.Client/Startup.cs index e4677a26..0b3e33d3 100644 --- a/Bootstrap.Client/Startup.cs +++ b/Bootstrap.Client/Startup.cs @@ -44,8 +44,8 @@ namespace Bootstrap.Client }); services.AddCors(); services.AddLogging(builder => builder.AddFileLogger()); - services.AddConfigurationManager(); - services.AddCacheManager(); + services.AddConfigurationManager(Configuration); + services.AddCacheManager(Configuration); services.AddDbAdapter(); var dataProtectionBuilder = services.AddDataProtection(op => op.ApplicationDiscriminator = Configuration["ApplicationDiscriminator"]) .SetApplicationName(Configuration["ApplicationName"])