diff options
author | 杨宇千 <crupest@outlook.com> | 2019-07-21 22:58:27 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-07-21 22:58:27 +0800 |
commit | 393daddb124ab6eae7506fd7db48e8333f28ad9c (patch) | |
tree | 402aa9c3f5fae0c1825cbeecf20c5a94c371f77d /Timeline/Startup.cs | |
parent | 2556e3bf0eac76af2efa63026fe440b1344e7a5d (diff) | |
download | timeline-393daddb124ab6eae7506fd7db48e8333f28ad9c.tar.gz timeline-393daddb124ab6eae7506fd7db48e8333f28ad9c.tar.bz2 timeline-393daddb124ab6eae7506fd7db48e8333f28ad9c.zip |
WIP: change UserService.
Diffstat (limited to 'Timeline/Startup.cs')
-rw-r--r-- | Timeline/Startup.cs | 3 |
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. |