aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Startup.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-07-21 22:58:27 +0800
committer杨宇千 <crupest@outlook.com>2019-07-21 22:58:27 +0800
commit79fcf66b157f38199771d30c0fd0cedbfbc786f2 (patch)
tree402aa9c3f5fae0c1825cbeecf20c5a94c371f77d /Timeline/Startup.cs
parent615ffca61fcc90b11b04c8d115018a26a4a63a33 (diff)
downloadtimeline-79fcf66b157f38199771d30c0fd0cedbfbc786f2.tar.gz
timeline-79fcf66b157f38199771d30c0fd0cedbfbc786f2.tar.bz2
timeline-79fcf66b157f38199771d30c0fd0cedbfbc786f2.zip
WIP: change UserService.
Diffstat (limited to 'Timeline/Startup.cs')
-rw-r--r--Timeline/Startup.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Timeline/Startup.cs b/Timeline/Startup.cs
index a865f366..83170c43 100644
--- a/Timeline/Startup.cs
+++ b/Timeline/Startup.cs
@@ -9,7 +9,6 @@ using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.IdentityModel.Tokens;
using System.Text;
-using System.Threading.Tasks;
using Timeline.Authenticate;
using Timeline.Configs;
using Timeline.Formatters;
@@ -87,6 +86,8 @@ namespace Timeline
services.Configure<QCloudCosConfig>(Configuration.GetSection(nameof(QCloudCosConfig)));
services.AddSingleton<IQCloudCosService, QCloudCosService>();
+
+ services.AddMemoryCache();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.